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 | |
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
-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-19 Johan Dahlin <jdahlin@async.com.br> + + * giscanner/cachestore.py: + Catch ValueError exceptions. + 2008-11-18 Tommi Komulainen <tommi.komulainen@iki.fi> * tests/scanner/Makefile.am (barapp_SOURCES): fix builddir != srcdir 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 |