mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-26 19:47:05 +03:00
Pop with default value to stop throwing
This commit is contained in:
parent
9037787f0b
commit
848cf95ea0
1 changed files with 1 additions and 1 deletions
|
@ -1096,7 +1096,7 @@ class FederationHandler(BaseHandler):
|
|||
if prev_id != event.event_id:
|
||||
results[(event.type, event.state_key)] = prev_id
|
||||
else:
|
||||
results.pop((event.type, event.state_key))
|
||||
results.pop((event.type, event.state_key), None)
|
||||
|
||||
defer.returnValue(results.values())
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue