mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-21 17:15:38 +03:00
Black like my soul
This commit is contained in:
parent
6f90f7068b
commit
808e29eb98
1 changed files with 9 additions and 3 deletions
|
@ -537,11 +537,17 @@ class IdentityHandler:
|
|||
except HttpResponseException as e:
|
||||
synapse_error = e.to_synapse_error()
|
||||
if synapse_error.errcode == Codes.TOKEN_INCORRECT:
|
||||
raise SynapseError(400, "Token incorrect", errcode=Codes.TOKEN_INCORRECT)
|
||||
raise SynapseError(
|
||||
400, "Token incorrect", errcode=Codes.TOKEN_INCORRECT
|
||||
)
|
||||
elif synapse_error.errcode == Codes.SESSION_EXPIRED:
|
||||
raise SynapseError(400, "Session expired", errcode=Codes.SESSION_EXPIRED)
|
||||
raise SynapseError(
|
||||
400, "Session expired", errcode=Codes.SESSION_EXPIRED
|
||||
)
|
||||
else:
|
||||
logger.warning("Error contacting msisdn account_threepid_delegate: %s", e)
|
||||
logger.warning(
|
||||
"Error contacting msisdn account_threepid_delegate: %s", e
|
||||
)
|
||||
raise SynapseError(400, "Error contacting the identity server")
|
||||
|
||||
async def lookup_3pid(
|
||||
|
|
Loading…
Reference in a new issue