summary refs log tree commit diff
path: root/synapse/crypto/keyring.py
diff options
context:
space:
mode:
authorAndrew Morgan <andrew@amorgan.xyz>2019-03-11 17:44:29 +0000
committerAndrew Morgan <andrew@amorgan.xyz>2019-03-11 17:44:29 +0000
commitf18dca26daad4b7114716b17b4a9f36a1989f16a (patch)
tree73035f6cf11594d02089b5b990be673d7c7849e5 /synapse/crypto/keyring.py
parentMerge branch 'develop' into anoa/trailing_slashes_client (diff)
parentMake federation endpoints more tolerant of trailing slashes for some endpoint... (diff)
downloadsynapse-f18dca26daad4b7114716b17b4a9f36a1989f16a.tar.xz
Merge branch 'develop' into anoa/trailing_slashes_client
Diffstat (limited to 'synapse/crypto/keyring.py')
-rw-r--r--synapse/crypto/keyring.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/crypto/keyring.py b/synapse/crypto/keyring.py
index 7474fd515f..0207cd989a 100644
--- a/synapse/crypto/keyring.py
+++ b/synapse/crypto/keyring.py
@@ -686,9 +686,9 @@ def _handle_key_deferred(verify_request):
     try:
         with PreserveLoggingContext():
             _, key_id, verify_key = yield verify_request.deferred
-    except (IOError, RequestSendFailed) as e:
+    except KeyLookupError as e:
         logger.warn(
-            "Got IOError when downloading keys for %s: %s %s",
+            "Failed to download keys for %s: %s %s",
             server_name, type(e).__name__, str(e),
         )
         raise SynapseError(