mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -04:00
fix unhandled sync error
Thanks to Abdo: https://forums.ankiweb.net/t/sync-anki-on-desktop-error/6299/2
This commit is contained in:
parent
dad4c76089
commit
25858c212c
1 changed files with 3 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue