Issue Adding Note Type ErreAnki_OverHaul_v25.3

Hello,

Before the error occurred, I was trying to add the note type ErreAnki_OverHaul_v25.3. However, the add-on crashed, and the option to add or manage the note type for the ErreAnki - Medicina e Residência deck disappeared. The following error was displayed:



Anki 24.11 (87ccd24e)  (ao)  
Python 3.9.18 Qt 6.6.2 PyQt 6.6.1  
Platform: Windows-10-10.0.26100  

Traceback (most recent call last):  

  File "C:\Users\terab\AppData\Roaming\Anki2\addons21\1322529746\gui\decks_dialog.py", line 195, in _refresh_box_bottom_right  
    self.box_note_types = self._setup_box_note_types(selected_ah_did)  

  File "C:\Users\terab\AppData\Roaming\Anki2\addons21\1322529746\gui\decks_dialog.py", line 596, in _setup_box_note_types  
    self._update_add_field_btn_state()  

  File "C:\Users\terab\AppData\Roaming\Anki2\addons21\1322529746\gui\decks_dialog.py", line 654, in _update_add_field_btn_state  
    enabled = bool(self._get_note_type_names_for_add_field_type_btn())  

  File "C:\Users\terab\AppData\Roaming\Anki2\addons21\1322529746\gui\decks_dialog.py", line 648, in _get_note_type_names_for_add_field_type_btn  
    if new_fields_for_note_type(note_type):  

  File "C:\Users\terab\AppData\Roaming\Anki2\addons21\1322529746\main\note_type_management.py", line 119, in new_fields_for_note_type  
    field_names = aqt.mw.col.models.field_names(note_type)  

  File "anki.models", line 276, in field_names  

TypeError: 'NoneType' object is not subscriptable  

This issue is only occurring with my main deck, ErreAnki - Medicina e Residência. For my other decks, ErreAnki Prática Médica and ErreBásico, the error does not happen.

Could you help me resolve this issue?

Thank you in advance!

Best regards,
Luiz

@abdo.nh

1 Like

This appears to be caused by a missing note type. Does using the AnkiHub > Reset all local changes to a deck option in the browser help?