Catch exception when checking if a note can be created
This commit is contained in:
parent
1dc9b90796
commit
13abf38ffb
@ -401,7 +401,10 @@ class AnkiBridge:
|
||||
|
||||
|
||||
def canAddNote(self, note):
|
||||
return bool(self.createNote(note))
|
||||
try:
|
||||
return bool(self.createNote(note))
|
||||
except:
|
||||
return False
|
||||
|
||||
|
||||
def createNote(self, params):
|
||||
|
Loading…
Reference in New Issue
Block a user