diff options
author | Kegan Dougal <kegan@matrix.org> | 2017-02-13 13:36:15 +0000 |
---|---|---|
committer | Kegan Dougal <kegan@matrix.org> | 2017-02-13 13:36:15 +0000 |
commit | 808ddf0ae72ef45d887e00c07ba834d0873ceb8d (patch) | |
tree | 32abfbceab941e3bf7dc72ab62d1e7a147c215f9 | |
parent | Don't cache errors at all (diff) | |
download | synapse-808ddf0ae72ef45d887e00c07ba834d0873ceb8d.tar.xz |
Pop the txn from the map in case it has already been deleted somehow
-rw-r--r-- | synapse/rest/client/transactions.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/rest/client/transactions.py b/synapse/rest/client/transactions.py index 95376a2fb6..7b742ca7ae 100644 --- a/synapse/rest/client/transactions.py +++ b/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() |