Vocab-Apps / anki-language-tools

Anki Language Tools addon
GNU General Public License v3.0
6 stars 0 forks source link

AttributeError: 'NoneType' object has no attribute 'did' #57

Closed sentry-io[bot] closed 2 years ago

sentry-io[bot] commented 2 years ago

Sentry Issue: ANKI-LANGUAGE-TOOLS-12

AttributeError: 'NoneType' object has no attribute 'did'
(1 additional frame(s) were not displayed)
...
  File "aqt/editor.py", line 479, in oncallback
  File "aqt/hooks_gen.py", line 1872, in __call__
  File "771677663/editor.py", line 63, in loadNote
    deck_note_type = languagetools.deck_utils.build_deck_note_type_from_editor(editor)
  File "771677663/deck_utils.py", line 100, in build_deck_note_type_from_editor
    deck_note_type = self.build_deck_note_type_from_note_card(note, editor.card)
  File "771677663/deck_utils.py", line 79, in build_deck_note_type_from_note_card
    deck_id = card.did