Tools - add bandit

This commit is contained in:
Sam
2022-05-28 20:01:14 +02:00
parent a9c20ad753
commit b5d09008ee
9 changed files with 156 additions and 8 deletions

View File

@ -388,7 +388,7 @@ def get_picture(user_name: str) -> Any:
if user.picture is not None:
picture_path = get_absolute_file_path(user.picture)
return send_file(picture_path)
except Exception:
except Exception: # nosec
pass
return NotFoundErrorResponse('No picture.')