From a2759710026a8fb18caabc4e2d017ff6de278085 Mon Sep 17 00:00:00 2001 From: Austin Siew <17107540+Aquafina-water-bottle@users.noreply.github.com> Date: Mon, 9 Jan 2023 21:23:43 -0700 Subject: [PATCH] fixed formatting issue --- plugin/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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,