Black like my soul

This commit is contained in:
David Baker 2024-08-29 13:06:24 +01:00
parent 6f90f7068b
commit 808e29eb98

View file

@ -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(