summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohan Dahlin <jdahlin@async.com.br>2009-01-13 14:44:38 +0000
committerJohan Dahlin <johan@src.gnome.org>2009-01-13 14:44:38 +0000
commit0d792f2b62d4f3d5b1045198cb02beabbc8d9fec (patch)
tree9a2049c23f715466c73f3b44da024bf03b1ca13f
parentf41a65c1940138747bede765d50a97f41fc04f63 (diff)
downloadgobject-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
-rw-r--r--ChangeLog3
-rw-r--r--giscanner/cachestore.py2
2 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index a14768a2..f115ea87 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2009-01-13 Johan Dahlin <jdahlin@async.com.br>
+ * giscanner/cachestore.py (CacheStore.load): Catch AttributeError
+ which seems to be occasionally raised for Record.
+
* giscanner/annotationparser.py:
Fix a bug where \n was not present in a comment
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