summary refs log tree commit diff
path: root/synapse/rest/client
diff options
context:
space:
mode:
authorKegan Dougal <kegan@matrix.org>2017-02-13 13:36:15 +0000
committerKegan Dougal <kegan@matrix.org>2017-02-13 13:36:15 +0000
commit808ddf0ae72ef45d887e00c07ba834d0873ceb8d (patch)
tree32abfbceab941e3bf7dc72ab62d1e7a147c215f9 /synapse/rest/client
parentDon't cache errors at all (diff)
downloadsynapse-808ddf0ae72ef45d887e00c07ba834d0873ceb8d.tar.xz
Pop the txn from the map in case it has already been deleted somehow
Diffstat (limited to 'synapse/rest/client')
-rw-r--r--synapse/rest/client/transactions.py2
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()