Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Pop the txn from the map in case it has already been deleted somehow
Browse files Browse the repository at this point in the history
  • Loading branch information
kegsay committed Feb 13, 2017
1 parent feb15dc commit 808ddf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion synapse/rest/client/transactions.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def fetch_or_execute(self, txn_key, fn, *args, **kwargs):
# from the transaction map. This is done to ensure that we don't
# cache transient errors like rate-limiting errors, etc.
def remove_from_map(err):
del self.transactions[txn_key]
self.transactions.pop(txn_key, None)
return err
observable.addErrback(remove_from_map)
return observable.observe()
Expand Down

0 comments on commit 808ddf0

Please sign in to comment.