If Disconnect comes between start of Connect and getting a response back
[theonering] / src / gvoice / addressbook.py
index 2a5e389..9d241cf 100644 (file)
@@ -32,11 +32,15 @@ class Addressbook(object):
 
        @misc_utils.log_exception(_moduleLogger)
        def _update(self):
-               contacts = yield (
-                       self._backend.get_contacts,
-                       (),
-                       {},
-               )
+               try:
+                       contacts = yield (
+                               self._backend.get_contacts,
+                               (),
+                               {},
+                       )
+               except Exception:
+                       _moduleLogger.exception("While updating the addressbook")
+                       return
 
                oldContacts = self._numbers
                oldContactNumbers = set(self.get_numbers())