Don't explode if we don't recognize one of the event_ids in the backfill request

pull/197/head
Erik Johnston 2015-07-06 09:31:40 +01:00
parent c0a975cc2e
commit 65e69dec8b
1 changed files with 4 additions and 2 deletions

View File

@ -408,10 +408,12 @@ class EventFederationStore(SQLBaseStore):
keyvalues={
"event_id": event_id,
},
retcol="depth"
retcol="depth",
allow_none=True,
)
queue.put((-depth, event_id))
if depth:
queue.put((-depth, event_id))
while not queue.empty() and len(event_results) < limit:
try: