diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | giscanner/cachestore.py | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +2008-11-18 Johan Dahlin <jdahlin@async.com.br> + + * giscanner/cachestore.py: + Catch BadPickleGet exceptions as well. + 2008-11-17 Owen Taylor <otaylor@redhat.com> * tests/everything/everything.c: Fix doc comment annotations 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 |