summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Mayer <entroP@gmail.com>2020-04-20 11:40:51 +0200
committerJustin Mayer <entroP@gmail.com>2020-04-20 11:40:51 +0200
commit3031ca64c879cd25e99f8b01b81cb162ea793fec (patch)
tree663061917824cce27bedf7f245705128d9b4771e
parent4a7cff7688d81e70b2f4dd698c2580ed376d1010 (diff)
downloadpelican-3031ca64c879cd25e99f8b01b81cb162ea793fec.tar.gz
Fix Python 2/3 cache pickle format incompatibility
-rw-r--r--pelican/cache.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pelican/cache.py b/pelican/cache.py
index f6adbc35..7d6ee992 100644
--- a/pelican/cache.py
+++ b/pelican/cache.py
@@ -33,7 +33,7 @@ class FileDataCacher(object):
try:
with self._cache_open(self._cache_path, 'rb') as 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 '
'run). Proceeding with empty cache.\n%s',
self._cache_path, err)