Exception handling on loading cache

This commit is contained in:
Dirk Alders 2025-03-14 21:19:32 +01:00
parent 9a1fa9e0ab
commit fce80cad6d
3 changed files with 3651 additions and 3632 deletions

View File

@ -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.