~foosoft/anki-connect

a2759710026a8fb18caabc4e2d017ff6de278085 — Austin Siew 2 years ago 0c37ab0
fixed formatting issue
1 files changed, 3 insertions(+), 3 deletions(-)

M plugin/__init__.py
M plugin/__init__.py => plugin/__init__.py +3 -3
@@ 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,

Do not follow this link