mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-10-01 11:49:51 -04:00
Don't always hit get_server_verify_key_v1_direct
This commit is contained in:
parent
118a760719
commit
5ae4a84211
@ -164,9 +164,14 @@ class Keyring(object):
|
|||||||
keys = yield self.get_server_verify_key_v2_direct(
|
keys = yield self.get_server_verify_key_v2_direct(
|
||||||
server_name, key_ids
|
server_name, key_ids
|
||||||
)
|
)
|
||||||
except:
|
except Exception as e:
|
||||||
pass
|
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(
|
keys = yield self.get_server_verify_key_v1_direct(
|
||||||
server_name, key_ids
|
server_name, key_ids
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user