mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-27 03:58:06 +03:00
Fix error handling when fetching remote device keys
This commit is contained in:
parent
63eb4a1b62
commit
458e51df7a
1 changed files with 1 additions and 3 deletions
|
@ -161,9 +161,7 @@ class E2eKeysHandler(object):
|
||||||
results[user_id] = {device["device_id"]: device["keys"]}
|
results[user_id] = {device["device_id"]: device["keys"]}
|
||||||
user_ids_updated.append(user_id)
|
user_ids_updated.append(user_id)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
failures[destination] = failures.get(destination, []).append(
|
failures[destination] = _exception_to_failure(e)
|
||||||
_exception_to_failure(e)
|
|
||||||
)
|
|
||||||
|
|
||||||
if len(destination_query) == len(user_ids_updated):
|
if len(destination_query) == len(user_ids_updated):
|
||||||
# We've updated all the users in the query and we do not need to
|
# We've updated all the users in the query and we do not need to
|
||||||
|
|
Loading…
Reference in a new issue