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

Commit 71a2589

Browse files
committed
Added a comment on why there's an extra 'except' block
1 parent 6d50d52 commit 71a2589

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

synapse/rest/client/login.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -438,6 +438,7 @@ async def _do_jwt_login(
438438
claims_options=claim_options,
439439
)
440440
except BadSignatureError:
441+
# We handle this case separately to provide a better error message
441442
raise LoginError(
442443
403,
443444
"JWT validation failed: Signature verification failed",

0 commit comments

Comments
 (0)