Make sure stats attribute is present on StaleCacheChain.

This commit is contained in:
Neil Williams
2012-04-12 22:40:56 -07:00
parent 983f7f8874
commit 1b7384591f

View File

@@ -511,6 +511,7 @@ class StaleCacheChain(CacheChain):
self.realcache = realcache
self.caches = (localcache, realcache) # for the other
# CacheChain machinery
self.stats = None
def get(self, key, default=None, stale = False, **kw):
if kw.get('allow_local', True) and key in self.caches[0]: