I am trying to use a deck from ankihub, but this error message shows up

Before the error happened, I wasโ€ฆ
[Replace this text.]

Error message (don't change this)
Anki 2.1.65 (aa9a734f) Python 3.9.15 Qt 6.5.0 PyQt 6.5.0
Platform: macOS-13.5.2-arm64-arm-64bit
Flags: frz=True ao=True sv=2
Add-ons, last update check: 2023-09-10 00:17:58

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 "/Users/jamesbates/Library/Application Support/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 "/Users/jamesbates/Library/Application Support/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 "/Users/jamesbates/Library/Application Support/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 "/Users/jamesbates/Library/Application Support/Anki2/addons21/1322529746/main/reset_local_changes.py", line 27, in reset_local_changes_to_notes
    notes_data = [

  File "/Users/jamesbates/Library/Application Support/Anki2/addons21/1322529746/main/reset_local_changes.py", line 30, in <listcomp>
    if (note_data := ankihub_db.note_data(nid)) is not None

  File "/Users/jamesbates/Library/Application Support/Anki2/addons21/1322529746/db/db.py", line 361, in note_data
    field_names = self._note_type_field_names(

  File "/Users/jamesbates/Library/Application Support/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)

Which deck are you trying to subscribe to?

Weโ€™re aware of this issue with some decks: Brand Name Missing Values Error

Weโ€™ll try to fix this as soon as possible.

1 Like