Fix backfill when cannot find an event.

`get_pdu` can succeed but return None.
pull/1107/head
Erik Johnston 2016-09-12 14:59:43 +01:00
parent aa7b890cfe
commit 706b5d76ed
1 changed files with 1 additions and 1 deletions

View File

@ -481,7 +481,7 @@ class FederationClient(FederationBase):
defer.DeferredList(deferreds, consumeErrors=True)
)
for success, result in res:
if success:
if success and result:
signed_events.append(result)
batch.discard(result.event_id)