fix automatic logout on auth failure not working
This commit is contained in:
parent
a991364bfb
commit
d9b6793616
@ -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):
|
def handle_sync_error(mw: aqt.main.AnkiQt, err: Exception):
|
||||||
if isinstance(err, SyncError):
|
if isinstance(err, SyncError):
|
||||||
if err.kind == SyncErrorKind.AUTH_FAILED:
|
if err.kind() == SyncErrorKind.AUTH_FAILED:
|
||||||
mw.pm.clear_sync_auth()
|
mw.pm.clear_sync_auth()
|
||||||
elif isinstance(err, Interrupted):
|
elif isinstance(err, Interrupted):
|
||||||
# no message to show
|
# no message to show
|
||||||
|
Loading…
Reference in New Issue
Block a user