diff options
author | Justin Mayer <entroP@gmail.com> | 2020-04-20 11:40:51 +0200 |
---|---|---|
committer | Justin Mayer <entroP@gmail.com> | 2020-04-20 11:40:51 +0200 |
commit | 3031ca64c879cd25e99f8b01b81cb162ea793fec (patch) | |
tree | 663061917824cce27bedf7f245705128d9b4771e | |
parent | 4a7cff7688d81e70b2f4dd698c2580ed376d1010 (diff) | |
download | pelican-3031ca64c879cd25e99f8b01b81cb162ea793fec.tar.gz |
Fix Python 2/3 cache pickle format incompatibility
-rw-r--r-- | pelican/cache.py | 2 |
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) |