I have an error

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.4.3 PyQt 6.4.0
Platform: Windows-10-10.0.22631
Flags: frz=True ao=True sv=2
Add-ons, last update check: 2024-10-02 04:41:10

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 "C:\Users\msi laptop\AppData\Roaming\Anki2\addons21\1322529746\gui\operations\subdecks.py", line 76, in _on_subdecks_updated
    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 "C:\Users\msi laptop\AppData\Roaming\Anki2\addons21\1322529746\gui\operations\subdecks.py", line 25, in <lambda>
    task=lambda: build_subdecks_and_move_cards_to_them(

  File "C:\Users\msi laptop\AppData\Roaming\Anki2\addons21\1322529746\main\subdecks.py", line 57, in build_subdecks_and_move_cards_to_them
    nid_to_dest_deck_name = _nid_to_destination_deck_name(

  File "C:\Users\msi laptop\AppData\Roaming\Anki2\addons21\1322529746\main\subdecks.py", line 95, in _nid_to_destination_deck_name
    tags_str = aqt.mw.col.db.scalar("SELECT tags FROM notes WHERE id = ?", nid)

AttributeError: 'NoneType' object has no attribute 'scalar'

Sentry link (for developers)

This is commonly reported with Anki 2.1.65. It should go away if you update Anki.