gobject-introspection r1031 - in trunk: . giscanner



Author: johan
Date: Tue Jan 13 14:44:38 2009
New Revision: 1031
URL: http://svn.gnome.org/viewvc/gobject-introspection?rev=1031&view=rev

Log:
2009-01-13  Johan Dahlin  <jdahlin async com br>

	* giscanner/cachestore.py (CacheStore.load): Catch AttributeError
	which seems to be occasionally raised for Record.



Modified:
   trunk/ChangeLog
   trunk/giscanner/cachestore.py

Modified: trunk/giscanner/cachestore.py
==============================================================================
--- trunk/giscanner/cachestore.py	(original)
+++ trunk/giscanner/cachestore.py	Tue Jan 13 14:44:38 2009
@@ -129,7 +129,7 @@
             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



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]