summaryrefslogtreecommitdiff
path: root/giscanner/cachestore.py
diff options
context:
space:
mode:
Diffstat (limited to 'giscanner/cachestore.py')
-rw-r--r--giscanner/cachestore.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/giscanner/cachestore.py b/giscanner/cachestore.py
index 264ccee4..11c5d757 100644
--- a/giscanner/cachestore.py
+++ b/giscanner/cachestore.py
@@ -106,7 +106,7 @@ class CacheStore(object):
return None
try:
data = cPickle.load(fd)
- except EOFError:
+ except (EOFError, cPickle.BadPickleGet):
# Broken cache entry, remove it
self._purge_cache(store_filename)
data = None