mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Fix Python 2/3 cache pickle format incompatibility
This commit is contained in:
parent
4a7cff7688
commit
3031ca64c8
1 changed files with 1 additions and 1 deletions
|
|
@ -33,7 +33,7 @@ class FileDataCacher(object):
|
||||||
try:
|
try:
|
||||||
with self._cache_open(self._cache_path, 'rb') as fhandle:
|
with self._cache_open(self._cache_path, 'rb') as fhandle:
|
||||||
self._cache = pickle.load(fhandle)
|
self._cache = pickle.load(fhandle)
|
||||||
except (IOError, OSError) as err:
|
except (IOError, OSError, UnicodeDecodeError) as err:
|
||||||
logger.debug('Cannot load cache %s (this is normal on first '
|
logger.debug('Cannot load cache %s (this is normal on first '
|
||||||
'run). Proceeding with empty cache.\n%s',
|
'run). Proceeding with empty cache.\n%s',
|
||||||
self._cache_path, err)
|
self._cache_path, err)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue