0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-11-03 13:18:56 +01:00

Pop with default value to stop throwing

This commit is contained in:
Erik Johnston 2017-02-28 10:01:19 +00:00
parent 9037787f0b
commit 848cf95ea0

View file

@ -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: