summary refs log tree commit diff
path: root/synapse/handlers/federation.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2016-08-24 10:31:05 +0100
committerErik Johnston <erik@matrix.org>2016-08-24 10:31:05 +0100
commitba07d4a70e534550519fd389b7e6aa6bdb454375 (patch)
treeef672312e48cc4f37b6ab9d06bbaa3ad56ee62e9 /synapse/handlers/federation.py
parentMerge pull request #1038 from matrix-org/erikj/receved_txn_purge (diff)
downloadsynapse-ba07d4a70e534550519fd389b7e6aa6bdb454375.tar.xz
Add None checks to backfill
Diffstat (limited to '')
-rw-r--r--synapse/handlers/federation.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/handlers/federation.py b/synapse/handlers/federation.py
index 328f8f4842..fdc6cbfa00 100644
--- a/synapse/handlers/federation.py
+++ b/synapse/handlers/federation.py
@@ -373,9 +373,9 @@ class FederationHandler(BaseHandler):
                     ],
                     consumeErrors=True
                 ).addErrback(unwrapFirstError)
-                auth_events.update({a.event_id: a for a in results})
+                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
+                    a_id for event in results for a_id, _ in event.auth_events if event
                 )
                 missing_auth = required_auth - set(auth_events)