summary refs log tree commit diff
path: root/synapse/handlers
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2016-08-25 10:30:09 +0100
committerErik Johnston <erik@matrix.org>2016-08-25 10:39:19 +0100
commitcd5b264b03bc5285994c094b62290e7c728812eb (patch)
treeb8ca87c52c04c5f4657814efa63ac3c20d4b797f /synapse/handlers
parentMerge branch 'release-v0.17.1' of github.com:matrix-org/synapse into develop (diff)
downloadsynapse-cd5b264b03bc5285994c094b62290e7c728812eb.tar.xz
Fix None check in backfill
Diffstat (limited to 'synapse/handlers')
-rw-r--r--synapse/handlers/federation.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/synapse/handlers/federation.py b/synapse/handlers/federation.py
index 01a761715b..4344a2bd52 100644
--- a/synapse/handlers/federation.py
+++ b/synapse/handlers/federation.py
@@ -377,7 +377,9 @@ class FederationHandler(BaseHandler):
                 )).addErrback(unwrapFirstError)
                 auth_events.update({a.event_id: a for a in results if a})
                 required_auth.update(
-                    a_id for event in results for a_id, _ in event.auth_events if event
+                    a_id
+                    for event in results if event
+                    for a_id, _ in event.auth_events
                 )
                 missing_auth = required_auth - set(auth_events)