Heatmap bug

Before the error happened, I was…
browsing the anking med deck for cards. this keeps happening and I’ve already confirmed that I have the latest version of the anki app, add-on, and iOS

Error message (don't change this)
Anki 26.08.1 (39e4b0b4) (ao)
Python 3.13.14 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 195, in cmd

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

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

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

  File "/Users/runner/work/anki/anki/out/installer/build/anki/macos/app/Anki.app/Contents/Resources/app_packages/_aqt/hooks.py", line 2662, 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 happe

I’m still having issues with this add-on. Below is the the error message I keep receiving.

Thanks,
Meghan

Anki 26.08.1 (39e4b0b4) (ao)
Python 3.13.14 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/taskman.py”, line 152, in raise_exception
File “/Users/runner/work/anki/anki/out/installer/build/anki/macos/app/Anki.app/Contents/Resources/app_packages/aqt/taskman.py”, line 148, in _on_closures_pending
File “/Users/runner/work/anki/anki/out/installer/build/anki/macos/app/Anki.app/Contents/Resources/app_packages/aqt/taskman.py”, line 88, in
File “/Users/runner/work/anki/anki/out/installer/build/anki/macos/app/Anki.app/Contents/Resources/app_packages/aqt/operations/init.py”, line 261, in wrapped_done
File “/Users/runner/work/anki/anki/out/installer/build/anki/macos/app/Anki.app/Contents/Resources/app_packages/aqt/deckbrowser.py”, line 171, in success
File “/Users/runner/work/anki/anki/out/installer/build/anki/macos/app/Anki.app/Contents/Resources/app_packages/aqt/deckbrowser.py”, line 187, in __renderPage
File “/Users/runner/work/anki/anki/out/installer/build/anki/macos/app/Anki.app/Contents/Resources/app_packages/_aqt/hooks.py”, line 1905, in call
File “/Users/Meg/Library/Application Support/Anki2/addons21/1771074083/views.py”, line 81, in on_deckbrowser_will_render_content
heatmap_html = self._controller.render_for_view(self._view)
File “/Users/Meg/Library/Application Support/Anki2/addons21/1771074083/controller.py”, line 77, in render_for_view
return self._renderer.render(view, limhist, limfcst, current_deck_only)

File "/Users/Meg/Library/Application Support/Anki2/addons21/1771074083/renderer.py", line 145, in render
if self._render_cache and self._cache_still_valid(
~~~~~~~~~~~~~~~~~~~~~~~^
view, limhist, limfcst, current_deck_only
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
):
^
File "/Users/Meg/Library/Application Support/Anki2/addons21/1771074083/renderer.py", line 205, in _cache_still_valid
col_unchanged = self._mw.col.mod == cache.col_mod # type: ignore
^^^^^^^^^^^^^^^^
File "/Users/runner/work/anki/anki/out/installer/build/anki/macos/app/Anki.app/Contents/Resources/app_packages/anki/_legacy.py", line 81, in __getattr__
AttributeError: 'Collection' object has no attribute 'mod'

===Add-ons (active)===
(add-on provided name [Add-on folder, installed at, version, is config changed])
Add Table ['1237621971', 2023-06-18T07:37, 'None', mod]
AnKing Note Types Easy Customization ['952691989', 2026-06-12T15:36, 'None', mod]
AnkiConnect ['2055492159', 2025-11-09T14:40, 'None', mod]
AnkiHub ['1322529746', 2026-08-27T10:23, 'None', '']
BetterSearch ['1052724801', 2026-03-03T07:58, 'None', mod]
Colorful Tags Hierarchical Tags ['594329229', 2022-09-15T11:06, 'None', '']
Congrats Confetti ['206062158', 2023-01-16T23:02, 'None', '']
Contanki - Controller Support for Anki beta ['1898790263', 2024-02-29T20:22, 'v1.0.2', mod]
FSRS Helper Postpone Advance Load Balance Easy Days Disperse Siblings ['759844606', 2026-05-14T02:49, 'None', mod]
Find cards from UWorld test ['444814983', 2024-07-19T02:19, 'None', '']
Image Occlusion Enhanced ['1374772155', 2022-04-09T03:15, 'None', '']
ImageResizer ['1214357311', 2023-12-02T20:58, 'None', '']
Puppy Reinforcement ['1722658993', 2023-11-16T07:59, 'None', '']
Review Heatmap ['1771074083', 2022-06-29T21:43, 'None', '']
Symbols ['1461102936', 2026-05-19T10:25, 'None', mod]
export cardsnotes from browser with metadata to csv or xlsx ['1967530655', 2024-03-28T09:16, 'None', '']
extended editor for field for tables searchreplace ['805891399', 2025-07-06T06:41, 'None', mod]

===IDs of active AnkiWeb add-ons===
1052724801 1214357311 1237621971 1322529746 1374772155 1461102936 1722658993 1771074083 1898790263 1967530655 2055492159 206062158 444814983 594329229 759844606 805891399 952691989

===Add-ons (inactive)===
(add-on provided name [Add-on folder, installed at, version, is config changed])