diff options
author | Christoph Reiter <reiter.christoph@gmail.com> | 2018-12-08 18:44:31 +0100 |
---|---|---|
committer | Christoph Reiter <reiter.christoph@gmail.com> | 2018-12-08 18:46:47 +0100 |
commit | 945438608433a554b8d7077af648d60a9daf59f9 (patch) | |
tree | 9c73f06108da1a2cf01cbfd8b2db89fa6b51dcd5 /giscanner | |
parent | 7c770ea4bbd0ddbb4f97551d05e884af4a9f8b21 (diff) | |
download | gobject-introspection-945438608433a554b8d7077af648d60a9daf59f9.tar.gz |
cachestore: don't try to catch nonexisting pickle.BadPickleGet. Fixes #159
pickle.loads() can pretty much throw any kind of exception and we can't
handle it besides ignoring it, so just catch all.
Diffstat (limited to 'giscanner')
-rw-r--r-- | giscanner/cachestore.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/giscanner/cachestore.py b/giscanner/cachestore.py index 58b3193c..857dc725 100644 --- a/giscanner/cachestore.py +++ b/giscanner/cachestore.py @@ -178,7 +178,7 @@ class CacheStore(object): return None try: data = pickle.load(fd) - except (AttributeError, EOFError, ValueError, pickle.BadPickleGet): + except Exception: # Broken cache entry, remove it self._remove_filename(store_filename) data = None |