treat name resolution failure as internet offline

This commit is contained in:
Damien Elmes 2017-08-15 18:46:07 +10:00
parent 5f614a5a45
commit bef6e5bcf5

View file

@ -376,7 +376,7 @@ class SyncThread(QThread):
log = traceback.format_exc() log = traceback.format_exc()
err = repr(str(e)) err = repr(str(e))
if ("Unable to find the server" in err or if ("Unable to find the server" in err or
"Errno 2" in err): "Errno 2" in err or "getaddrinfo" in err):
self.fireEvent("offline") self.fireEvent("offline")
elif "sync cancelled" in err: elif "sync cancelled" in err:
pass pass