Exception handling on loading cache
This commit is contained in:
parent
9a1fa9e0ab
commit
fce80cad6d
@ -227,8 +227,12 @@ class property_cache_pickle(object):
|
||||
|
||||
def _load_cache(self):
|
||||
if os.path.exists(self._cache_filename):
|
||||
self._load_only()
|
||||
return True
|
||||
try:
|
||||
self._load_only()
|
||||
except:
|
||||
logger.exception("Exception while loading cache file %s", self._cache_filename)
|
||||
else:
|
||||
return True
|
||||
else:
|
||||
logger.debug('Cache file does not exists (yet).')
|
||||
return False
|
||||
|
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user