catch broken pipe error

This commit is contained in:
Damien Elmes 2014-01-24 03:10:04 +09:00
parent 5f9afe5296
commit 1e1e1f6f95

View file

@ -170,7 +170,7 @@ AnkiWeb is too busy at the moment. Please try again in a few minutes.""")
elif "10061" in err or "10013" in err or "10053" in err: elif "10061" in err or "10013" in err or "10053" in err:
return _( return _(
"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: 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:
return _( return _(