Skip to content

Commit

Permalink
small-fix: improve exception format
Browse files Browse the repository at this point in the history
  • Loading branch information
Anuj-Gupta4 committed Nov 15, 2024
1 parent 6188fa3 commit 26e77de
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/backend/app/auth/roles.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,7 @@ async def get_uid(user_data: AuthUser | DbUser) -> int:

except Exception as e:
log.exception(
f"Failed to get user id from auth object: {user_data}. ",
f"Error: {e}",
f"Failed to get user id from auth object: {user_data}. Error: {e}",
stack_info=True,
)
raise HTTPException(
Expand Down

0 comments on commit 26e77de

Please sign in to comment.