Commit 18d971f4 authored by Dan Pascu's avatar Dan Pascu

Fixed handling exceptions while loading google contacts

parent 3c358815
......@@ -369,7 +369,7 @@ class GoogleContactsManager(object):
self.need_sync = True
try:
self.contacts = pickle.load(open(ApplicationData.get('google_contacts')))
except (OSError, IOError, pickle.UnpicklingError):
except Exception:
self.contacts = GoogleContactsList()
self._initialize()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment