From e2e68e0c54fd116c2bda4bd2517fa9cbc640d412 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Thu, 31 May 2018 13:24:49 +1000 Subject: [PATCH] catch name resolution errors in sync --- aqt/sync.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aqt/sync.py b/aqt/sync.py index e8dea07d9..91f527f88 100644 --- a/aqt/sync.py +++ b/aqt/sync.py @@ -179,7 +179,7 @@ AnkiWeb is too busy at the moment. Please try again in a few minutes.""") "Antivirus or firewall software is preventing Anki from connecting to the internet.") elif "10054" in err or "Broken pipe" in err: return _("Connection timed out. Either your internet connection is experiencing problems, or you have a very large file in your media folder.") - elif "Unable to find the server" in err: + elif "Unable to find the server" in err or "socket.gaierror" in err: return _( "Server not found. Either your connection is down, or antivirus/firewall " "software is blocking Anki from connecting to the internet.")