mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
catch arbitrary exceptions during cache unpickling
It is hard to forsee what could be raised.
This commit is contained in:
parent
8673711d84
commit
ef96705677
1 changed files with 1 additions and 1 deletions
|
|
@ -577,7 +577,7 @@ class FileDataCacher(object):
|
|||
'run). Proceeding with empty cache.\n{}').format(
|
||||
self._cache_path, err))
|
||||
self._cache = {}
|
||||
except pickle.UnpicklingError as err:
|
||||
except Exception as err:
|
||||
logger.warning(('Cannot unpickle cache {}, cache may be using '
|
||||
'an incompatible protocol (see pelican caching docs). '
|
||||
'Proceeding with empty cache.\n{}').format(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue