diff options
author | Johan Dahlin <jdahlin@async.com.br> | 2008-11-19 20:15:14 +0000 |
---|---|---|
committer | Johan Dahlin <johan@src.gnome.org> | 2008-11-19 20:15:14 +0000 |
commit | 015ff071e34c44170db344a33c6af7201c4c6260 (patch) | |
tree | 0367bf24613c8567f326290752b32de4213f84c0 /giscanner/cachestore.py | |
parent | 27e5838192638333ed9f0d462419a1e0c7a03829 (diff) | |
download | gobject-introspection-015ff071e34c44170db344a33c6af7201c4c6260.tar.gz |
Catch ValueError exceptions.
2008-11-19 Johan Dahlin <jdahlin@async.com.br>
* giscanner/cachestore.py:
Catch ValueError exceptions.
svn path=/trunk/; revision=950
Diffstat (limited to 'giscanner/cachestore.py')
-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 11c5d757..bd3d8641 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, cPickle.BadPickleGet): + except (EOFError, ValueError, cPickle.BadPickleGet): # Broken cache entry, remove it self._purge_cache(store_filename) data = None |