Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Added a comment on why there's an extra 'except' block
Browse files Browse the repository at this point in the history
  • Loading branch information
aytchell committed Jun 15, 2022
1 parent 6d50d52 commit 71a2589
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions synapse/rest/client/login.py
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,7 @@ async def _do_jwt_login(
claims_options=claim_options,
)
except BadSignatureError:
# We handle this case separately to provide a better error message
raise LoginError(
403,
"JWT validation failed: Signature verification failed",
Expand Down

0 comments on commit 71a2589

Please sign in to comment.