Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Fix None check in backfill
Browse files Browse the repository at this point in the history
  • Loading branch information
erikjohnston committed Aug 25, 2016
1 parent eb6a7cf commit cd5b264
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion synapse/handlers/federation.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,9 @@ def backfill(self, dest, room_id, limit, extremities):
)).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)

Expand Down

0 comments on commit cd5b264

Please sign in to comment.