Repeated Error PopUps

Before the error happened, I was…
[Replace this text.]

Error message (don't change this)
Anki 25.02.1 (fa1d6eae)  (ao)
Python 3.9.18 Qt 6.6.2 PyQt 6.6.1
Platform: macOS-26.2-arm64-arm-64bit

Traceback (most recent call last):

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

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

  File "aqt.operations", line 253, in wrapped_done

  File "/Users/divyeshtrivedi/Library/Application Support/Anki2/addons21/1322529746/gui/media_sync.py", line 64, in on_failure
    raise exception

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

  File "aqt.operations", line 243, in wrapped_op

  File "/Users/divyeshtrivedi/Library/Application Support/Anki2/addons21/1322529746/gui/media_sync.py", line 68, in <lambda>
    op=lambda _: self._update_deck_media_and_download_missing_media(),

  File "/Users/divyeshtrivedi/Library/Application Support/Anki2/addons21/1322529746/gui/media_sync.py", line 136, in _update_deck_media_and_download_missing_media
    missing_media_names = self._missing_media_for_ah_deck(ah_did)

  File "/Users/divyeshtrivedi/Library/Application Support/Anki2/addons21/1322529746/gui/media_sync.py", line 212, in _missing_media_for_ah_deck
    referenced_media = self._media_referenced_by_notes(ah_did)

  File "/Users/divyeshtrivedi/Library/Application Support/Anki2/addons21/1322529746/gui/media_sync.py", line 204, in _media_referenced_by_notes
    media_names.update(get_media_names_from_note_type(note_type))

  File "/Users/divyeshtrivedi/Library/Application Support/Anki2/addons21/1322529746/common_utils.py", line 207, in get_media_names_from_note_type
    result.update(_extract_underscored_css_imports(note_type["css"]))

TypeError: 'NoneType' object is not subscriptable

Sentry link (for developers)

Same as here? This error just keeps popping up idky - #2 by MarcosZan

We pushed a fix for this. If you’re still seeing it, please update from Tools > Add-ons > Check for Updates.

2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.