delete bug in caching.py?

0 views
Skip to first unread message

JC

unread,
Feb 25, 2008, 8:29:17 AM2/25/08
to cherrypy-devel
In caching.py, at line 86, should:

def delete(self):
self.cache.pop(self.key)

be:

def delete(self):
self.cache.pop(self.key, None)

instead? Otherwise, delete() throws a KeyError if the key doesn't
exist, for example, at line 121:

if request.method in invalid_methods:
cherrypy._cache.delete()

Jeff

Sylvain Hellegouarch

unread,
Feb 25, 2008, 12:29:40 PM2/25/08
to cherryp...@googlegroups.com
You're looking for the following ticket:
http://www.cherrypy.org/ticket/714

It seems it had been fixed but maybe not in your version of CP.

- Sylvain

JC a écrit :

Reply all
Reply to author
Forward
0 new messages