mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -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,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
|
||||||
|
|
Loading…
Reference in a new issue