diff options
author | Johan Dahlin <jdahlin@async.com.br> | 2009-01-13 14:44:38 +0000 |
---|---|---|
committer | Johan Dahlin <johan@src.gnome.org> | 2009-01-13 14:44:38 +0000 |
commit | 0d792f2b62d4f3d5b1045198cb02beabbc8d9fec (patch) | |
tree | 9a2049c23f715466c73f3b44da024bf03b1ca13f /giscanner/cachestore.py | |
parent | f41a65c1940138747bede765d50a97f41fc04f63 (diff) | |
download | gobject-introspection-0d792f2b62d4f3d5b1045198cb02beabbc8d9fec.tar.gz |
Catch AttributeError which seems to be occasionally raised for Record.
2009-01-13 Johan Dahlin <jdahlin@async.com.br>
* giscanner/cachestore.py (CacheStore.load): Catch AttributeError
which seems to be occasionally raised for Record.
svn path=/trunk/; revision=1031
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 5c4b5b49..8c901951 100644 --- a/giscanner/cachestore.py +++ b/giscanner/cachestore.py @@ -129,7 +129,7 @@ class CacheStore(object): return None try: data = cPickle.load(fd) - except (EOFError, ValueError, cPickle.BadPickleGet): + except (AttributeError, EOFError, ValueError, cPickle.BadPickleGet): # Broken cache entry, remove it self._remove_filename(store_filename) data = None |