Commits

Robert Brewer committed 8ab8e90

Trunk fix for #714 (bug in tools.caching).

  • Participants
  • Parent commits 9d320ac

Comments (0)

Files changed (1)

cherrypy/lib/caching.py

                 self.cursize = total_size
     
     def delete(self):
-        self.cache.pop(self.key())
+        self.cache.pop(self.key(), None)
 
 
 def get(invalid_methods=("POST", "PUT", "DELETE"), **kwargs):