Pop the txn from the map in case it has already been deleted somehow

pull/4/merge
Kegan Dougal 8 years ago
parent feb15dc99f
commit 808ddf0ae7
  1. 2
      synapse/rest/client/transactions.py

@ -97,7 +97,7 @@ class HttpTransactionCache(object):
# 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()

Loading…
Cancel
Save