From 808e29eb987b5e9956d074d09b2a37bf7a71d9e1 Mon Sep 17 00:00:00 2001 From: David Baker Date: Thu, 29 Aug 2024 13:06:24 +0100 Subject: [PATCH] Black like my soul --- synapse/handlers/identity.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/synapse/handlers/identity.py b/synapse/handlers/identity.py index 745f32e32d..efbe43085f 100644 --- a/synapse/handlers/identity.py +++ b/synapse/handlers/identity.py @@ -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(