Sync Anki on Desktop Error

Hi everyone,
I have 3 devices I want to use Anki. 1 device on android , 2 desktops app(1 at my home, 1 at my company). App and device at home work successfully. When I setup 1 more device at computer at company. It doesn’t work when I sync.
The log is:
An error occurred. Please use Tools > Check Database to see if that fixes the problem.

If problems persist, please report the problem on our support site. Please copy and paste the information below into your report.

Anki 2.1.35 (84dcaa86) Python 3.8.1 Qt 5.12.6 PyQt 5.12.3

Platform: Windows 10

Flags: frz=True ao=False sv=1

Add-ons, last update check: 2021-01-06 13:14:14

Caught exception:

Traceback (most recent call last):

File “aqt\taskman.py”, line 87, in _on_closures_pending

File “aqt\taskman.py”, line 59, in

File “aqt\taskman.py”, line 76, in wrapped_done

File “aqt\sync.py”, line 257, in on_future_done

UnboundLocalError: local variable ‘auth’ referenced before assignment

Is Anyone can help me find the problem? Please.
Version Anki at my company and at my home is the same.

Thanks.

@dae, seems like incomprehensive error handling here: anki/sync.py at d03cabf9a8c0e558288222b031ecf85692d5f5db · ankitects/anki · GitHub

1 Like

Thanks, I’ve pushed a fix.

@maiphuhust the error is not being reported correctly, but is likely caused by your work blocking Anki.

1 Like

Thank you for support, I understand.