diff --git a/VERSION b/VERSION index 7a813579..9c10dc01 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.7.4-stable+timestamp.2013.10.30.08.58.58 +Version 2.7.4-stable+timestamp.2013.10.31.09.39.21 diff --git a/gluon/cache.py b/gluon/cache.py index 15815af3..f4619a02 100644 --- a/gluon/cache.py +++ b/gluon/cache.py @@ -279,8 +279,9 @@ class CacheOnDisk(CacheAbstract): logger.error('corrupted cache file %s, will try rebuild it' % self.shelve_name) storage = None - if not storage and os.path.exists(self.shelve_name): - os.unlink(self.shelve_name) + if storage is None: + if os.path.exists(self.shelve_name): + os.unlink(self.shelve_name) storage = shelve.open(self.shelve_name) if not CacheAbstract.cache_stats_name in storage.keys(): storage[CacheAbstract.cache_stats_name] = {