Commits

Eric Larson  committed dba2077

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

  • Participants
  • Parent commits f94a23c

Comments (0)

Files changed (1)

File 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)