fix unhandled sync error

Thanks to Abdo:
https://forums.ankiweb.net/t/sync-anki-on-desktop-error/6299/2
This commit is contained in:
Damien Elmes 2021-01-06 18:51:28 +10:00
parent dad4c76089
commit 25858c212c

View file

@ -249,6 +249,8 @@ def sync_login(
if e.kind() == SyncErrorKind.AUTH_FAILED:
showWarning(str(e))
sync_login(mw, on_success, username, password)
else:
handle_sync_error(mw, e)
return
except Exception as err:
handle_sync_error(mw, err)