Commits

Eric Larson committed dba2077

Deletes on keys not currently in the cache don't throw an error

Comments (0)

Files changed (1)

httpcache/cache.py

         self.data.update({key: value})
 
     def delete(self, key):
-        self.data.pop(key)
+        if key in self.data:
+            self.data.pop(key)