Commit 07fca1ea authored by Dan Pascu's avatar Dan Pascu

Handle HttpLib2Error exceptions when fetching Google contacts

parent 1703a975
......@@ -878,7 +878,7 @@ class GoogleContactsManager(object):
self.sync_contacts()
return
log.warning(u"Could not fetch Google contacts: {!s}".format(e))
except socket.error as e:
except (HttpLib2Error, socket.error) as e:
log.warning(u"Could not fetch Google contacts: {!s}".format(e))
else:
added_contacts = []
......
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