From 273cb74e3dcc6742b62d5cc1d51c72fe0c64970d Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Fri, 17 May 2013 13:58:38 +0900 Subject: [PATCH] separate messages for 50x errors --- aqt/sync.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/aqt/sync.py b/aqt/sync.py index a74f6f048..4c859a559 100644 --- a/aqt/sync.py +++ b/aqt/sync.py @@ -144,9 +144,13 @@ the problem persists, please file a bug report.""") Please upgrade to the latest version of Anki.""") # 502 is technically due to the server restarting, but we reuse the # error message - elif "502" in err or "503" in err or "504" in err: + elif "502" in err: + return _("AnkiWeb is under maintenance. Please try again in a few minutes.") + elif "503" in err: return _("""\ AnkiWeb is too busy at the moment. Please try again in a few minutes.""") + elif "504" in err: + return _("504 gateway timeout error received. Please try temporarily disabling your antivirus.") elif "409" in err: return _("A previous sync failed; please try again in a few minutes.") elif "10061" in err or "10013" in err: