mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-22 01:25:44 +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:
|
except HttpResponseException as e:
|
||||||
synapse_error = e.to_synapse_error()
|
synapse_error = e.to_synapse_error()
|
||||||
if synapse_error.errcode == Codes.TOKEN_INCORRECT:
|
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:
|
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:
|
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")
|
raise SynapseError(400, "Error contacting the identity server")
|
||||||
|
|
||||||
async def lookup_3pid(
|
async def lookup_3pid(
|
||||||
|
|
Loading…
Reference in a new issue