Leaderboard error message

I keep getting an error message when i try to view the leaderboard
The error message is as follows: please tell me what to do
(Error
An error occurred. Please start Anki while holding down the shift key, which will temporarily disable the add-ons you have installed.
If the issue only occurs when add-ons are enabled, please use the Tools > Add-ons menu item to disable some add-ons and restart Anki, repeating until you discover the add-on that is causing the problem.
When you’ve discovered the add-on that is causing the problem, please report the issue on the add-on support site.
Debug info:
Anki 2.1.49 (dc80804a) Python 3.8.6 Qt 5.14.2 PyQt 5.14.2
Platform: Windows 10
Flags: frz=True ao=True sv=2
Add-ons, last update check: 2022-01-23 14:35:53

Caught exception:
Traceback (most recent call last):
File “C:\Users\HP\AppData\Roaming\Anki2\addons21\41708974_init_.py”, line 26, in Main
mw.leaderboard = start_main(season_start, season_end, current_season)
File “C:\Users\HP\AppData\Roaming\Anki2\addons21\41708974\Leaderboard.py”, line 41, in init
self.setupUI()
File “C:\Users\HP\AppData\Roaming\Anki2\addons21\41708974\Leaderboard.py”, line 97, in setupUI
self.load_leaderboard()
File “C:\Users\HP\AppData\Roaming\Anki2\addons21\41708974\Leaderboard.py”, line 194, in load_leaderboard
load_league(self, colors)
File “C:\Users\HP\AppData\Roaming\Anki2\addons21\41708974\League.py”, line 51, in load_league
if league_name == user_league_name and xp != 0:
UnboundLocalError: local variable ‘user_league_name’ referenced before assignment
)

You may get more help if you report this to the developer: Error is caught whenever Leaderboard is opened · Issue #166 · ThoreBor/Anki_Leaderboard · GitHub

1 Like