RisingOrange/anki-enhanced-cloze

Lagging when using the add-ons

Opened this issue · 0 comments

When I use it, it appears a notification like this:
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, repeat 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-ons section of our support site.
Debug info:
Anki 23.10.1 (fac9e0ee) Python 3.9.15 Qt 6.6.0 PyQt 6.6.0
Platform: Windows-10-10.0.22631
Flags: frz=True ao=True sv=3
Add-ons, last update check: 2023-12-10 21:12:35
Add-ons possibly involved: ⁨Enhanced Cloze for Anki 21⁩

Caught exception:
Traceback (most recent call last):
File "anki.notes", line 154, in _field_index
KeyError: 'Cloze99'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "aqt.studydeck", line 164, in accept
File "aqt.studydeck", line 168, in accept_with_callback
File "aqt.notetypechooser", line 113, in callback
File "aqt.notetypechooser", line 144, in selected_notetype_id
File "aqt.addcards", line 206, in on_notetype_change
File "aqt.editor", line 555, in loadNote
File "C:\Users\ADMIN\AppData\Roaming\Anki2\addons21\1990296174\patches.py", line 79, in new_fields_check
result = original_fields_check(self)
File "anki.notes", line 195, in fields_check
File "anki.notes", line 70, in _to_backend_note
File "anki.hooks_gen", line 466, in call
File "C:\Users\ADMIN\AppData\Roaming\Anki2\addons21\1990296174\editor.py", line 24, in maybe_fill_in_or_remove_cloze99
note["Cloze99"] = "{{c1::.}}"
File "anki.notes", line 162, in setitem
File "anki.notes", line 156, in _field_index
KeyError: 'Cloze99'

Then the app suddenly lagging and shutting down. Pls help me I love this add-ons so much <3