mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 22:42:25 -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()
|
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
|
||||||
|
|
Loading…
Reference in a new issue