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,7 +249,9 @@ def sync_login(
if e.kind() == SyncErrorKind.AUTH_FAILED: if e.kind() == SyncErrorKind.AUTH_FAILED:
showWarning(str(e)) showWarning(str(e))
sync_login(mw, on_success, username, password) sync_login(mw, on_success, username, password)
return else:
handle_sync_error(mw, e)
return
except Exception as err: except Exception as err:
handle_sync_error(mw, err) handle_sync_error(mw, err)
return return