remove try-except in updateNoteModel
Signed-off-by: Tategoto Azarasi <2724167997@qq.com>
This commit is contained in:
parent
b77327fb00
commit
1c428c8627
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user