Handle the case when things return empty but non none things

pull/4/merge
Erik Johnston 10 years ago
parent 7223129916
commit 6837c5edab
  1. 4
      synapse/crypto/keyring.py

@ -159,7 +159,7 @@ class Keyring(object):
)
with limiter:
if keys is None:
if not keys:
try:
keys = yield self.get_server_verify_key_v2_direct(
server_name, key_ids
@ -171,7 +171,7 @@ class Keyring(object):
type(e).__name__, str(e.message),
)
if keys is None:
if not keys:
keys = yield self.get_server_verify_key_v1_direct(
server_name, key_ids
)

Loading…
Cancel
Save