Brand Name Missing Values Error

I opened anki and Ankihub asked me to sync my Brand Names deck due missing values. I repeatedly get this error message. It doesn’t seem to affect anything, it’s just annoying to continue to get.

Error message (don't change this)
Anki 2.1.65 (aa9a734f) Python 3.9.15 Qt 6.4.3 PyQt 6.4.0
Platform: Windows-10-10.0.22621
Flags: frz=True ao=True sv=2
Add-ons, last update check: 2023-09-07 21:23:20

Traceback (most recent call last):

  File "aqt.taskman", line 122, in _on_closures_pending

  File "aqt.taskman", line 71, in <lambda>

  File "aqt.taskman", line 90, in wrapped_done

  File "C:\Users\mf806\AppData\Roaming\Anki2\addons21\1322529746\gui\operations\db_check\anki_db_check.py", line 58, in _on_done
    future.result()

  File "concurrent.futures._base", line 439, in result

  File "concurrent.futures._base", line 391, in __get_result

  File "concurrent.futures.thread", line 58, in run

  File "C:\Users\mf806\AppData\Roaming\Anki2\addons21\1322529746\gui\operations\db_check\anki_db_check.py", line 51, in <lambda>
    lambda: _reset_decks(ah_dids_with_missing_ah_nids),

  File "C:\Users\mf806\AppData\Roaming\Anki2\addons21\1322529746\gui\operations\db_check\anki_db_check.py", line 114, in _reset_decks
    reset_local_changes_to_notes(nids, ah_did=ah_did)

  File "C:\Users\mf806\AppData\Roaming\Anki2\addons21\1322529746\main\reset_local_changes.py", line 27, in reset_local_changes_to_notes
    notes_data = [

  File "C:\Users\mf806\AppData\Roaming\Anki2\addons21\1322529746\main\reset_local_changes.py", line 30, in <listcomp>
    if (note_data := ankihub_db.note_data(nid)) is not None

  File "C:\Users\mf806\AppData\Roaming\Anki2\addons21\1322529746\db\db.py", line 361, in note_data
    field_names = self._note_type_field_names(

  File "C:\Users\mf806\AppData\Roaming\Anki2\addons21\1322529746\db\db.py", line 851, in _note_type_field_names
    for field in self.note_type_dict(

TypeError: 'NoneType' object is not subscriptable

Sentry link (for developers)

This is not supposed to happen. I notified the team about it.

1 Like