mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-07-30 09:38:47 -04:00
Fixup synapse.rest to pass mypy (#6732)
This commit is contained in:
parent
74b74462f1
commit
b0a66ab83c
12 changed files with 56 additions and 35 deletions
|
@ -514,7 +514,7 @@ class CasTicketServlet(RestServlet):
|
|||
if user is None:
|
||||
raise Exception("CAS response does not contain user")
|
||||
except Exception:
|
||||
logger.error("Error parsing CAS response", exc_info=1)
|
||||
logger.exception("Error parsing CAS response")
|
||||
raise LoginError(401, "Invalid CAS response", errcode=Codes.UNAUTHORIZED)
|
||||
if not success:
|
||||
raise LoginError(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue