From c121edf5d60c7ea53780752c47860526d4f941df Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Fri, 16 Dec 2011 10:37:18 +0900 Subject: [PATCH] catch 500 errors --- aqt/sync.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/aqt/sync.py b/aqt/sync.py index caab82995..60a35a63b 100755 --- a/aqt/sync.py +++ b/aqt/sync.py @@ -108,6 +108,10 @@ and try again.""") return _("""\ The connection to AnkiWeb timed out. Please check your network \ connection and try again.""") + elif "500" in err: + return _("""\ +AnkiWeb encountered an error. Please try again in a few minutes, and if \ +the problem persists, please file a bug report.""") elif "501" in err: return _("""\ Please upgrade to the latest version of Anki.""")