Anki bug keeps popping up

Before the error happened, I was opening my anki

Error message (don't change this)
Anki 25.07.5 (7172b2d2) (ao)
Python 3.13.5 Qt 6.9.1 PyQt 6.9.1
Platform: Windows-11-10.0.26200-SP0

Traceback (most recent call last):

  File "C:\Users\bojhw\AppData\Local\AnkiProgramFiles\.venv\Lib\site-packages\aqt\taskman.py", line 152, in raise_exception
    raise exception

  File "C:\Users\bojhw\AppData\Local\AnkiProgramFiles\.venv\Lib\site-packages\aqt\taskman.py", line 148, in _on_closures_pending
    closure()
    ~~~~~~~^^

  File "C:\Users\bojhw\AppData\Roaming\Anki2\addons21\1322529746\gui\auto_sync.py", line 100, in sync_with_ankiweb
    future.result()
    ~~~~~~~~~~~~~^^

  File "C:\Users\bojhw\AppData\Local\AnkiProgramFiles\python\cpython-3.13.5-windows-x86_64-none\Lib\concurrent\futures\_base.py", line 449, in result
    return self.__get_result()
           ~~~~~~~~~~~~~~~~~^^

  File "C:\Users\bojhw\AppData\Local\AnkiProgramFiles\python\cpython-3.13.5-windows-x86_64-none\Lib\concurrent\futures\_base.py", line 401, in __get_result
    raise self._exception

  File "C:\Users\bojhw\AppData\Roaming\Anki2\addons21\1322529746\gui\operations\utils.py", line 36, in wrapper
    return func(*args, **kwargs)

  File "C:\Users\bojhw\AppData\Roaming\Anki2\addons21\1322529746\gui\operations\ankihub_sync.py", line 227, in _on_sync_done
    maybe_check_databases()
    ~~~~~~~~~~~~~~~~~~~~~^^

  File "C:\Users\bojhw\AppData\Roaming\Anki2\addons21\1322529746\gui\operations\db_check\__init__.py", line 23, in maybe_check_databases
    check_ankihub_db(on_success=check_anki_db)
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "C:\Users\bojhw\AppData\Roaming\Anki2\addons21\1322529746\gui\operations\db_check\ah_db_check.py", line 23, in check_ankihub_db
    on_success()
    ~~~~~~~~~~^^

  File "C:\Users\bojhw\AppData\Roaming\Anki2\addons21\1322529746\gui\operations\db_check\anki_db_check.py", line 20, in check_anki_db
    _check_missing_ankihub_nids()
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~^^

  File "C:\Users\bojhw\AppData\Roaming\Anki2\addons21\1322529746\gui\operations\db_check\anki_db_check.py", line 40, in _check_missing_ankihub_nids
    [config.deck_config(deck_id).name for deck_id in ah_dids_with_missing_ah_nids],
     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

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

Sentry link (for developers)

Hello,

  1. Please try Tools > Check Database

  2. Update your AnkiHub add-on:

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

It says no update :confused:

Did the Check Database returned some error?

Please also try updating Anki. You can download it here: https://apps.ankiweb.net/. After downloading, simply run the downloaded file to update your application.

Hello,

Yes, I downloaded Anki.

 File "C:\Users\bojhw\AppData\Local\AnkiProgramFiles\python\cpython-3.13.5-windows-x86_64-none\Lib\concurrent\futures\_base.py", line 449, in result
    return self.__get_result()
           ~~~~~~~~~~~~~~~~~^^

  File "C:\Users\bojhw\AppData\Local\AnkiProgramFiles\python\cpython-3.13.5-windows-x86_64-none\Lib\concurrent\futures\_base.py", line 401, in __get_result
    raise self._exception

  File "C:\Users\bojhw\AppData\Roaming\Anki2\addons21\1322529746\gui\operations\utils.py", line 36, in wrapper
    return func(*args, **kwargs)

  File "C:\Users\bojhw\AppData\Roaming\Anki2\addons21\1322529746\gui\operations\ankihub_sync.py", line 227, in _on_sync_done
    maybe_check_databases()
    ~~~~~~~~~~~~~~~~~~~~~^^

  File "C:\Users\bojhw\AppData\Roaming\Anki2\addons21\1322529746\gui\operations\db_check\__init__.py", line 23, in maybe_check_databases
    check_ankihub_db(on_success=check_anki_db)
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "C:\Users\bojhw\AppData\Roaming\Anki2\addons21\1322529746\gui\operations\db_check\ah_db_check.py", line 23, in check_ankihub_db
    on_success()
    ~~~~~~~~~~^^

  File "C:\Users\bojhw\AppData\Roaming\Anki2\addons21\1322529746\gui\operations\db_check\anki_db_check.py", line 20, in check_anki_db
    _check_missing_ankihub_nids()
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~^^

  File "C:\Users\bojhw\AppData\Roaming\Anki2\addons21\1322529746\gui\operations\db_check\anki_db_check.py", line 40, in _check_missing_ankihub_nids
    [config.deck_config(deck_id).name for deck_id in ah_dids_with_missing_ah_nids],
     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

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

Hello,

Could you please confirm if you have tried running Tools > Check Database? This error doesn’t show up after trying Tools > Check Database, right?

Do any errors pop up after you try Tools > Check Database?

Hello,

Yep no error pop up when I do tools and then check database. Only pops up when I open anki from my desktop. Thanks!

Please close Anki, go to the AnkiHub website, unsubscribe, and then resubscribe to the MCAT deck. Afterward, open Anki again to see if the error is resolved. Don’t worry, you won’t lose any of your progress by resubscribing.