prevent TB
This commit is contained in:
parent
ef0604e29e
commit
727d2976a2
1 changed files with 2 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Reference in a new issue