gobject-introspection r950 - in trunk: . giscanner



Author: johan
Date: Wed Nov 19 20:15:14 2008
New Revision: 950
URL: http://svn.gnome.org/viewvc/gobject-introspection?rev=950&view=rev

Log:
2008-11-19  Johan Dahlin  <jdahlin async com br>

        * giscanner/cachestore.py:
        Catch ValueError exceptions.



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

Modified: trunk/giscanner/cachestore.py
==============================================================================
--- trunk/giscanner/cachestore.py	(original)
+++ trunk/giscanner/cachestore.py	Wed Nov 19 20:15:14 2008
@@ -106,7 +106,7 @@
             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



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