prevent TB

This commit is contained in:
Yann Leboulanger 2006-07-21 15:50:06 +00:00
parent ef0604e29e
commit 727d2976a2
1 changed files with 2 additions and 1 deletions

View File

@ -133,7 +133,8 @@ class CacheDictionary:
def _expire_timeout(self, key):
'''The timeout has expired, remove the object.'''
del self.cache[key]
if key in self.cache:
del self.cache[key]
return False
def _refresh_timeout(self, key):