mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-12-18 05:04:18 -05:00
Pop with default value to stop throwing
This commit is contained in:
parent
9037787f0b
commit
848cf95ea0
@ -1096,7 +1096,7 @@ class FederationHandler(BaseHandler):
|
|||||||
if prev_id != event.event_id:
|
if prev_id != event.event_id:
|
||||||
results[(event.type, event.state_key)] = prev_id
|
results[(event.type, event.state_key)] = prev_id
|
||||||
else:
|
else:
|
||||||
results.pop((event.type, event.state_key))
|
results.pop((event.type, event.state_key), None)
|
||||||
|
|
||||||
defer.returnValue(results.values())
|
defer.returnValue(results.values())
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user