Don't explode if we don't recognize one of the event_ids in the backfill request
This commit is contained in:
parent
c0a975cc2e
commit
65e69dec8b
|
@ -408,9 +408,11 @@ class EventFederationStore(SQLBaseStore):
|
||||||
keyvalues={
|
keyvalues={
|
||||||
"event_id": event_id,
|
"event_id": event_id,
|
||||||
},
|
},
|
||||||
retcol="depth"
|
retcol="depth",
|
||||||
|
allow_none=True,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if depth:
|
||||||
queue.put((-depth, event_id))
|
queue.put((-depth, event_id))
|
||||||
|
|
||||||
while not queue.empty() and len(event_results) < limit:
|
while not queue.empty() and len(event_results) < limit:
|
||||||
|
|
Loading…
Reference in New Issue