diff options
author | Erik Johnston <erik@matrix.org> | 2016-08-10 10:44:37 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2016-08-10 10:44:37 +0100 |
commit | fa1ce4d8adb307f9b325b4e8c125f78a673c4987 (patch) | |
tree | 25c153b3d151c407e7b7142b52b0720b15a3073f /synapse/rest/key/v2 | |
parent | Merge pull request #995 from matrix-org/rav/clean_up_cas_login (diff) | |
download | synapse-fa1ce4d8adb307f9b325b4e8c125f78a673c4987.tar.xz |
Don't print stack traces when failing to get remote keys
Diffstat (limited to 'synapse/rest/key/v2')
-rw-r--r-- | synapse/rest/key/v2/remote_key_resource.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/synapse/rest/key/v2/remote_key_resource.py b/synapse/rest/key/v2/remote_key_resource.py index 7209d5a37d..9fe2013657 100644 --- a/synapse/rest/key/v2/remote_key_resource.py +++ b/synapse/rest/key/v2/remote_key_resource.py @@ -15,6 +15,7 @@ from synapse.http.server import request_handler, respond_with_json_bytes from synapse.http.servlet import parse_integer, parse_json_object_from_request from synapse.api.errors import SynapseError, Codes +from synapse.crypto.keyring import KeyLookupError from twisted.web.resource import Resource from twisted.web.server import NOT_DONE_YET @@ -210,9 +211,10 @@ class RemoteKey(Resource): yield self.keyring.get_server_verify_key_v2_direct( server_name, key_ids ) + except KeyLookupError as e: + logger.info("Failed to fetch key: %s", e) except: logger.exception("Failed to get key for %r", server_name) - pass yield self.query_keys( request, query, query_remote_on_cache_miss=False ) |