fixed formatting issue
This commit is contained in:
parent
0c37ab0f5c
commit
a275971002
@ -350,7 +350,7 @@ class AnkiConnect:
|
|||||||
# Not a duplicate
|
# Not a duplicate
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
def raiseNotfoundError(self, errorMsg):
|
def raiseNotFoundError(self, errorMsg):
|
||||||
if anki_version < (2, 1, 55):
|
if anki_version < (2, 1, 55):
|
||||||
raise NotFoundError(errorMsg)
|
raise NotFoundError(errorMsg)
|
||||||
raise NotFoundError(errorMsg, None, None, None)
|
raise NotFoundError(errorMsg, None, None, None)
|
||||||
@ -359,13 +359,13 @@ class AnkiConnect:
|
|||||||
try:
|
try:
|
||||||
return self.collection().getCard(card_id)
|
return self.collection().getCard(card_id)
|
||||||
except NotFoundError:
|
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:
|
def getNote(self, note_id: int) -> Note:
|
||||||
try:
|
try:
|
||||||
return self.collection().getNote(note_id)
|
return self.collection().getNote(note_id)
|
||||||
except NotFoundError:
|
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):
|
def deckStatsToJson(self, due_tree):
|
||||||
deckStats = {'deck_id': due_tree.deck_id,
|
deckStats = {'deck_id': due_tree.deck_id,
|
||||||
|
Loading…
Reference in New Issue
Block a user