From 259aec9a28a53eb16ac38ce5353080f8bca66339 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Mon, 10 Dec 2012 05:45:30 +0900 Subject: [PATCH] catch 10061 --- aqt/sync.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aqt/sync.py b/aqt/sync.py index a7b29ad9e..fbb8810ac 100644 --- a/aqt/sync.py +++ b/aqt/sync.py @@ -111,7 +111,7 @@ Please visit AnkiWeb, upgrade your deck, then try again.""")) return _("""\ Couldn't connect to AnkiWeb. Please check your network connection \ and try again.""") - elif "timed out" in err: + elif "timed out" in err or "10060" in err: return _("""\ The connection to AnkiWeb timed out. Please check your network \ 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.""") elif "409" in err: return _("A previous sync failed; please try again in a few minutes.") - elif "10060" in err: + elif "10061" in err: return _( "Antivirus or firewall software is preventing Anki from connecting to the internet.") elif "407" in err: