Vocab-Apps / anki-language-tools

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

editor loadNote / setup fields on editor error handling #72

Open sentry-io[bot] opened 2 years ago

sentry-io[bot] commented 2 years ago

AnkiItemNotFoundError: card not found

Sentry Issue: ANKI-LANGUAGE-TOOLS-2P

AnkiItemNotFoundError: card not found
(1 additional frame(s) were not displayed)
...
  File "aqt\editor.py", line 480, in oncallback
  File "aqt\hooks_gen.py", line 1910, 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 102, 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
    raise errors.AnkiItemNotFoundError(f'card not found')