Actually get "item" when a cached item expires

This commit is contained in:
jesopo 2018-09-29 13:37:19 +01:00
parent 47ec11bbef
commit fe981f9911

View file

@ -31,6 +31,7 @@ class Cache(object):
if expiration and expiration <= now: if expiration and expiration <= now:
expired.append(id) expired.append(id)
for id in expired: for id in expired:
item = self._items[id]
del self._items[id] del self._items[id]
del self._item_to_id[item] del self._item_to_id[item]