summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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