AnkiHub add on error 7/21/23

**Before the error happened, I was… trying to get my subscribed deck to show in my main decks.

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.4-arm64-arm-64bit
Flags: frz=True ao=True sv=2
Add-ons, last update check: 2023-07-21 08:52:24

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/ashleighbuzzell/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/ashleighbuzzell/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/ashleighbuzzell/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, ankihub_deck_uuid=ah_did)

  File "/Users/ashleighbuzzell/Library/Application Support/Anki2/addons21/1322529746/reset_local_changes.py", line 34, in reset_local_changes_to_notes
    notes_data = [

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

  File "/Users/ashleighbuzzell/Library/Application Support/Anki2/addons21/1322529746/db/db.py", line 305, in note_data
    field["name"] for field in aqt.mw.col.models.get(NotetypeId(mid))["flds"]

TypeError: 'NoneType' object is not subscriptable

Sentry link (for developers)

We are currently recommending version 2.1.64. Please use that version and retry the steps to see if it solves the issue.