Merge pull request #77 from aci2n/master
Catch exception when checking if a note can be created
This commit is contained in:
commit
3ab156577e
@ -401,7 +401,10 @@ class AnkiBridge:
|
|||||||
|
|
||||||
|
|
||||||
def canAddNote(self, note):
|
def canAddNote(self, note):
|
||||||
|
try:
|
||||||
return bool(self.createNote(note))
|
return bool(self.createNote(note))
|
||||||
|
except:
|
||||||
|
return False
|
||||||
|
|
||||||
|
|
||||||
def createNote(self, params):
|
def createNote(self, params):
|
||||||
|
Loading…
Reference in New Issue
Block a user