catch 409 errors

This commit is contained in:
Damien Elmes 2012-09-09 00:02:15 +09:00
parent 50cd01ffdd
commit 09559c35c8

View file

@ -125,6 +125,8 @@ Please upgrade to the latest version of Anki.""")
elif "502" in err or "503" in err or "504" in err: elif "502" in err or "503" in err or "504" in err:
return _("""\ return _("""\
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:
return _("A previous sync failed; please try again in a few minutes.")
return err return err
def _getUserPass(self): def _getUserPass(self):