making pickled caches block no execution
authorEd Page <eopage@byu.net>
Sat, 26 Feb 2011 21:22:15 +0000 (15:22 -0600)
committerEd Page <eopage@byu.net>
Sat, 26 Feb 2011 21:22:15 +0000 (15:22 -0600)
src/gvoice/addressbook.py
src/gvoice/conversations.py
src/gvoice/locations.py

index 33f514a..4b3793b 100644 (file)
@@ -40,7 +40,7 @@ class Addressbook(object):
                try:
                        with open(path, "rb") as f:
                                fileVersion, fileBuild, contacts = pickle.load(f)
-               except (pickle.PickleError, IOError, EOFError, ValueError):
+               except (pickle.PickleError, IOError, EOFError, ValueError, Exception):
                        _moduleLogger.exception("While loading")
                        return
 
index 7cad027..64dafb8 100644 (file)
@@ -48,7 +48,7 @@ class Conversations(object):
                try:
                        with open(path, "rb") as f:
                                fileVersion, fileBuild, convs = pickle.load(f)
-               except (pickle.PickleError, IOError, EOFError, ValueError):
+               except (pickle.PickleError, IOError, EOFError, ValueError, Exception):
                        _moduleLogger.exception("While loading for %s" % self._name)
                        return
 
index ed85620..6b0d124 100644 (file)
@@ -45,7 +45,7 @@ class Locations(object):
                try:
                        with open(path, "rb") as f:
                                fileVersion, fileBuild, locs = pickle.load(f)
-               except (pickle.PickleError, IOError, EOFError, ValueError):
+               except (pickle.PickleError, IOError, EOFError, ValueError, Exception):
                        _moduleLogger.exception("While loading for %s" % self._name)
                        return