mirror of
https://github.com/element-hq/synapse
synced 2024-08-19 19:40:20 +00:00
Merge pull request #1043 from matrix-org/erikj/backfill_fix
Fix None check in backfill
This commit is contained in:
commit
c1a133a6b6
1 changed files with 3 additions and 1 deletions
|
@ -377,7 +377,9 @@ class FederationHandler(BaseHandler):
|
||||||
)).addErrback(unwrapFirstError)
|
)).addErrback(unwrapFirstError)
|
||||||
auth_events.update({a.event_id: a for a in results if a})
|
auth_events.update({a.event_id: a for a in results if a})
|
||||||
required_auth.update(
|
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)
|
missing_auth = required_auth - set(auth_events)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue