Protection against some kind of weird error I hit
authorEd Page <eopage@byu.net>
Wed, 24 Feb 2010 03:46:35 +0000 (21:46 -0600)
committerEd Page <eopage@byu.net>
Wed, 24 Feb 2010 03:46:35 +0000 (21:46 -0600)
src/gvoice/conversations.py

index f64c9f7..ea2ab6f 100644 (file)
@@ -36,7 +36,7 @@ class Conversations(object):
                try:
                        with open(path, "rb") as f:
                                fileVersion, fileBuild, convs = pickle.load(f)
-               except (pickle.PickleError, IOError):
+               except (pickle.PickleError, IOError, EOFError, ValueError):
                        _moduleLogger.exception("While loading for %s" % self._name)
                        return