Merge pull request #77 from aci2n/master

Catch exception when checking if a note can be created
This commit is contained in:
Alex Yatskov 2018-03-16 07:32:34 -07:00 committed by GitHub
commit 3ab156577e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -401,7 +401,10 @@ class AnkiBridge:
def canAddNote(self, note): def canAddNote(self, note):
return bool(self.createNote(note)) try:
return bool(self.createNote(note))
except:
return False
def createNote(self, params): def createNote(self, params):