Vocab-Apps / anki-language-tools

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

editor crash #51

Open luc-vocab opened 2 years ago

luc-vocab commented 2 years ago

Debug info: Anki 2.1.41 (312fa278) Python 3.8.6 Qt 5.14.2 PyQt 5.14.2 Platform: Windows 10 Flags: frz=True ao=True sv=2 Add-ons, last update check: 2021-07-26 00:05:10

Caught exception: Traceback (most recent call last): File "aqt\webview.py", line 36, in cmd File "aqt\webview.py", line 135, in _onCmd File "aqt\webview.py", line 574, in _onBridgeCmd File "aqt\hooks_gen.py", line 3173, in call File "C:\Users\Casartelli\AppData\Roaming\Anki2\addons21\771677663\editor.py", line 150, in onBridge editor_manager.process_field_update(editor, str) File "C:\Users\Casartelli\AppData\Roaming\Anki2\addons21\771677663\editor_processing.py", line 138, in process_field_update from_deck_note_type_field = from_deck_note_type_field = self.languagetools.deck_utils.editor_get_dntf(editor, field_index) File "C:\Users\Casartelli\AppData\Roaming\Anki2\addons21\771677663\deck_utils.py", line 106, in editor_get_dntf deck_note_type = self.build_deck_note_type_from_editor(editor) File "C:\Users\Casartelli\AppData\Roaming\Anki2\addons21\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 "C:\Users\Casartelli\AppData\Roaming\Anki2\addons21\771677663\deck_utils.py", line 79, in build_deck_note_type_from_note_card deck_id = card.did AttributeError: 'NoneType' object has no attribute 'did'