Add-on bug heatmap

Before the error happened, I was…
doing anki as normal, then was interrupted w this error msg

Error message (don't change this)
Anki 26.05 (e64c6b1a) (ao)
Python 3.13.11 Qt 6.11.0 PyQt 6.11.0
Platform: macOS-26.5.2-arm64-arm-64bit-Mach-O

Traceback (most recent call last):

  File "/Users/runner/work/anki/anki/out/installer/build/anki/macos/app/Anki.app/Contents/Resources/app_packages/aqt/webview.py", line 188, in cmd

  File "/Users/runner/work/anki/anki/out/installer/build/anki/macos/app/Anki.app/Contents/Resources/app_packages/aqt/webview.py", line 275, in _onCmd

  File "/Users/runner/work/anki/anki/out/installer/build/anki/macos/app/Anki.app/Contents/Resources/app_packages/aqt/webview.py", line 806, in _onBridgeCmd

  File "/Users/runner/work/anki/anki/out/installer/build/anki/macos/app/Anki.app/Contents/Resources/app_packages/aqt/editor.py", line 466, in onBridgeCmd

  File "/Users/runner/work/anki/anki/out/installer/build/anki/macos/app/Anki.app/Contents/Resources/app_packages/_aqt/hooks.py", line 2578, in __call__

  File "/Users/Meg/Library/Application Support/Anki2/addons21/1322529746/gui/editor.py", line 90, in _on_field_unfocus_auto_protect
    ah_field_names_lower = {f.lower() for f in ankihub_db.note_type_field_names(NotetypeId(note.mid))}
                                               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^

  File "/Users/Meg/Library/Application Support/Anki2/addons21/1322529746/db/db.py", line 592, in note_type_field_names
    (field for field in self.note_type_dict(anki_note_type_id)["flds"]),
                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^

TypeError: 'NoneType' object is not subscriptable

Sentry link (for developers)

Hello,

Update your AnkiHub add-on:

  1. On your Anki main screen, go to Tools > Add-ons > Check for Updates.
  2. After the update is complete, please restart Anki.

Please reach out to us if the error continues to happen