Skip to content
Snippets Groups Projects
Commit 808ddf0a authored by Kegan Dougal's avatar Kegan Dougal
Browse files

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

parent feb15dc9
No related branches found
No related tags found
No related merge requests found
......@@ -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()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment