From 25858c212c9443861b845dc64554a5fe55ede3b6 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Wed, 6 Jan 2021 18:51:28 +1000 Subject: [PATCH] fix unhandled sync error Thanks to Abdo: https://forums.ankiweb.net/t/sync-anki-on-desktop-error/6299/2 --- qt/aqt/sync.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/qt/aqt/sync.py b/qt/aqt/sync.py index 255ae8120..7466a97fb 100644 --- a/qt/aqt/sync.py +++ b/qt/aqt/sync.py @@ -249,7 +249,9 @@ def sync_login( if e.kind() == SyncErrorKind.AUTH_FAILED: showWarning(str(e)) sync_login(mw, on_success, username, password) - return + else: + handle_sync_error(mw, e) + return except Exception as err: handle_sync_error(mw, err) return