mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -04:00
treat name resolution failure as internet offline
This commit is contained in:
parent
5f614a5a45
commit
bef6e5bcf5
1 changed files with 1 additions and 1 deletions
|
@ -376,7 +376,7 @@ class SyncThread(QThread):
|
|||
log = traceback.format_exc()
|
||||
err = repr(str(e))
|
||||
if ("Unable to find the server" in err or
|
||||
"Errno 2" in err):
|
||||
"Errno 2" in err or "getaddrinfo" in err):
|
||||
self.fireEvent("offline")
|
||||
elif "sync cancelled" in err:
|
||||
pass
|
||||
|
|
Loading…
Reference in a new issue