Skip to content

Commit

Permalink
email or uid
Browse files Browse the repository at this point in the history
  • Loading branch information
pcrespov committed Nov 5, 2024
1 parent a546fcf commit 298161c
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ async def wrapper(request: web.Request) -> web.StreamResponse:
return await handler(request)

except UserNotFoundError as exc:
raise web.HTTPNotFound(reason=f"User {exc.uid} not found") from exc
raise web.HTTPNotFound(
reason=f"User {exc.uid or exc.email} not found"
) from exc

except GroupNotFoundError as exc:
raise web.HTTPNotFound(reason=f"Group {exc.gid} not found") from exc
Expand Down

0 comments on commit 298161c

Please sign in to comment.