Fix Cache saving crash

Because was deleting values of a dict while looping over its values...
master
pictuga 2014-06-07 19:14:31 +02:00
parent f90958149e
commit cdef40fbbe
1 changed files with 1 additions and 1 deletions

View File

@ -145,7 +145,7 @@ class Cache:
if not os.path.exists(self._dir):
os.makedirs(self._dir)
for i in self._cache:
for i in self._cache.keys():
if time.time() - self._cache[i]['last'] > self._lifespan > -1:
del self._cache[i]