catch 10061

This commit is contained in:
Damien Elmes 2012-12-10 05:45:30 +09:00
parent a25ad01c1b
commit 259aec9a28

View file

@ -111,7 +111,7 @@ Please visit AnkiWeb, upgrade your deck, then try again."""))
return _("""\ return _("""\
Couldn't connect to AnkiWeb. Please check your network connection \ Couldn't connect to AnkiWeb. Please check your network connection \
and try again.""") and try again.""")
elif "timed out" in err: elif "timed out" in err or "10060" in err:
return _("""\ return _("""\
The connection to AnkiWeb timed out. Please check your network \ The connection to AnkiWeb timed out. Please check your network \
connection and try again.""") connection and try again.""")
@ -129,7 +129,7 @@ Please upgrade to the latest version of Anki.""")
AnkiWeb is too busy at the moment. Please try again in a few minutes.""") AnkiWeb is too busy at the moment. Please try again in a few minutes.""")
elif "409" in err: elif "409" in err:
return _("A previous sync failed; please try again in a few minutes.") return _("A previous sync failed; please try again in a few minutes.")
elif "10060" in err: elif "10061" 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 "407" in err: elif "407" in err: