summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2019-07-30 13:07:02 +0100
committerErik Johnston <erik@matrix.org>2019-07-30 13:07:02 +0100
commit458e51df7aabe6fc2736c1aeb6a3556374309879 (patch)
treec76c84f65f71b1560ecacb8e15e3e3f63b1533a0 /synapse
parentMerge pull request #5746 from matrix-org/erikj/test_bg_update_currnet_state (diff)
downloadsynapse-458e51df7aabe6fc2736c1aeb6a3556374309879.tar.xz
Fix error handling when fetching remote device keys
Diffstat (limited to 'synapse')
-rw-r--r--synapse/handlers/e2e_keys.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/synapse/handlers/e2e_keys.py b/synapse/handlers/e2e_keys.py
index 366a0bc68b..848cd3a0d5 100644
--- a/synapse/handlers/e2e_keys.py
+++ b/synapse/handlers/e2e_keys.py
@@ -161,9 +161,7 @@ class E2eKeysHandler(object):
                         results[user_id] = {device["device_id"]: device["keys"]}
                     user_ids_updated.append(user_id)
                 except Exception as e:
-                    failures[destination] = failures.get(destination, []).append(
-                        _exception_to_failure(e)
-                    )
+                    failures[destination] = _exception_to_failure(e)
 
             if len(destination_query) == len(user_ids_updated):
                 # We've updated all the users in the query and we do not need to