0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-12-14 22:43:52 +01:00

Don't always hit get_server_verify_key_v1_direct

This commit is contained in:
Erik Johnston 2015-05-19 13:43:34 +01:00
parent 19505e0392
commit 253f76a0a5

View file

@ -164,9 +164,14 @@ class Keyring(object):
keys = yield self.get_server_verify_key_v2_direct(
server_name, key_ids
)
except:
pass
except Exception as e:
logging.info(
"Unable to getting key %r for %r directly: %s %s",
key_ids, server_name,
type(e).__name__, str(e.message),
)
if keys is None:
keys = yield self.get_server_verify_key_v1_direct(
server_name, key_ids
)