catch name resolution errors in sync

This commit is contained in:
Damien Elmes 2018-05-31 13:24:49 +10:00
parent 0562c7ba45
commit 08538a48dc

View file

@ -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.")