Vocab-Apps / anki-language-tools

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

KeyError: 'Transliteration' #64

Closed sentry-io[bot] closed 2 years ago

sentry-io[bot] commented 2 years ago

should be using logging.exception

Sentry Issue: ANKI-LANGUAGE-TOOLS-26

KeyError: 'Transliteration'
  File "anki\notes.py", line 150, in _field_index

KeyError: 'Transliteration'
  File "771677663\dialogs.py", line 655, in process_rules_task
    note[to_field] = transliteration_result
  File "anki\notes.py", line 158, in __setitem__
  File "anki\notes.py", line 152, in _field_index

error while getting transliteration for note_id 1630595279465
luc-vocab commented 2 years ago

refactored error handling (in dev) to ensure this is not an unhandled exception.