@@ 350,7 350,7 @@ class AnkiConnect:
# Not a duplicate
return 0
- def raiseNotfoundError(self, errorMsg):
+ def raiseNotFoundError(self, errorMsg):
if anki_version < (2, 1, 55):
raise NotFoundError(errorMsg)
raise NotFoundError(errorMsg, None, None, None)
@@ 359,13 359,13 @@ class AnkiConnect:
try:
return self.collection().getCard(card_id)
except NotFoundError:
- self.raiseNotfoundError('Card was not found: {}'.format(card_id))
+ self.raiseNotFoundError('Card was not found: {}'.format(card_id))
def getNote(self, note_id: int) -> Note:
try:
return self.collection().getNote(note_id)
except NotFoundError:
- self.raiseNotfoundError('Note was not found: {}'.format(note_id))
+ self.raiseNotFoundError('Note was not found: {}'.format(note_id))
def deckStatsToJson(self, due_tree):
deckStats = {'deck_id': due_tree.deck_id,