diff --git a/plugin/__init__.py b/plugin/__init__.py index 589e1d4..e9c7b75 100644 --- a/plugin/__init__.py +++ b/plugin/__init__.py @@ -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,