Skip to content

Commit

Permalink
Ignore useless mypy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
augusto-herrmann committed Feb 13, 2025
1 parent 4c8cd5c commit bd15651
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ async def login_for_access_token(
except Exception as exception:
message = getattr(exception, "message", str(exception))
if getattr(exception, "json", None):
message = exception.json()
message = exception.json() # type: ignore
raise HTTPException(
status.HTTP_422_UNPROCESSABLE_ENTITY, detail=message
) from exception
Expand Down

0 comments on commit bd15651

Please sign in to comment.