remove try-except in updateNoteModel

Signed-off-by: Tategoto Azarasi <2724167997@qq.com>
This commit is contained in:
Tategoto Azarasi 2024-05-10 12:16:12 +08:00 committed by Alex Yatskov
parent b77327fb00
commit 1c428c8627

View File

@ -842,7 +842,6 @@ class AnkiConnect:
:param note: A dictionary containing note details, including 'id', 'modelName', 'fields', and 'tags'.
"""
try:
# Extract and validate the note ID
note_id = note.get('id')
if not note_id:
@ -891,9 +890,6 @@ class AnkiConnect:
# Save changes to the collection
collection.autosave()
except Exception as e:
raise Exception(f"Failed to update note model: {e}")
@util.api()
def updateNoteTags(self, note, tags):
if type(tags) == str: