diff --git a/qt/aqt/sync.py b/qt/aqt/sync.py index 82ef4cf1b..b81390adb 100644 --- a/qt/aqt/sync.py +++ b/qt/aqt/sync.py @@ -61,7 +61,7 @@ def get_sync_status(mw: aqt.main.AnkiQt, callback: Callable[[SyncStatus], None]) def handle_sync_error(mw: aqt.main.AnkiQt, err: Exception): if isinstance(err, SyncError): - if err.kind == SyncErrorKind.AUTH_FAILED: + if err.kind() == SyncErrorKind.AUTH_FAILED: mw.pm.clear_sync_auth() elif isinstance(err, Interrupted): # no message to show