summary refs log tree commit diff
path: root/synapse/rest/client/transactions.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-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()