summary refs log tree commit diff
path: root/synapse/crypto/keyring.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2015-05-19 12:50:17 +0100
committerErik Johnston <erik@matrix.org>2015-05-19 12:50:17 +0100
commit9de94d5a4d34c59b87f698fdde9027029e4de41b (patch)
tree713ffe00f3b83a93f3df3f0bff3cb6b153e46362 /synapse/crypto/keyring.py
parentDon't reuse var names (diff)
parentSYN-383: Handle the fact the server might not have signed things (diff)
downloadsynapse-9de94d5a4d34c59b87f698fdde9027029e4de41b.tar.xz
Merge branch 'develop' of github.com:matrix-org/synapse into erikj/join_perf
Diffstat (limited to '')
-rw-r--r--synapse/crypto/keyring.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/crypto/keyring.py b/synapse/crypto/keyring.py
index 1f24e58ba0..a061def16a 100644
--- a/synapse/crypto/keyring.py
+++ b/synapse/crypto/keyring.py
@@ -329,7 +329,7 @@ class Keyring(object):
                 verify_key.time_added = time_now_ms
                 old_verify_keys[key_id] = verify_key
 
-        for key_id in response_json["signatures"][server_name]:
+        for key_id in response_json["signatures"].get(server_name, {}):
             if key_id not in response_json["verify_keys"]:
                 raise ValueError(
                     "Key response must include verification keys for all"