1 files changed, 4 insertions, 4 deletions
diff --git a/synapse/crypto/keyring.py b/synapse/crypto/keyring.py
index 8c125e3a46..7474fd515f 100644
--- a/synapse/crypto/keyring.py
+++ b/synapse/crypto/keyring.py
@@ -450,11 +450,11 @@ class Keyring(object):
long_retries=True,
)
except (NotRetryingDestination, RequestSendFailed) as e:
- raise raise_from(
+ raise_from(
KeyLookupError("Failed to connect to remote server"), e,
)
except HttpResponseException as e:
- raise raise_from(
+ raise_from(
KeyLookupError("Remote server returned an error"), e,
)
@@ -530,11 +530,11 @@ class Keyring(object):
ignore_backoff=True,
)
except (NotRetryingDestination, RequestSendFailed) as e:
- raise raise_from(
+ raise_from(
KeyLookupError("Failed to connect to remote server"), e,
)
except HttpResponseException as e:
- raise raise_from(
+ raise_from(
KeyLookupError("Remote server returned an error"), e,
)
|