catch name resolution errors in sync

This commit is contained in:
Damien Elmes 2018-05-31 13:24:49 +10:00
parent e6fcfb7379
commit e2e68e0c54

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.") "Antivirus or firewall software is preventing Anki from connecting to the internet.")
elif "10054" in err or "Broken pipe" in err: 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.") 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 _( return _(
"Server not found. Either your connection is down, or antivirus/firewall " "Server not found. Either your connection is down, or antivirus/firewall "
"software is blocking Anki from connecting to the internet.") "software is blocking Anki from connecting to the internet.")