mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 06:52:21 -04:00
Say which card failed with an exception
This commit is contained in:
parent
9594a3ef9b
commit
3318f23ff3
2 changed files with 2 additions and 2 deletions
|
@ -74,7 +74,7 @@ class Scheduler(V2):
|
|||
self._answerRevCard(card, ease)
|
||||
self._updateStats(card, "rev")
|
||||
else:
|
||||
raise Exception("Invalid queue")
|
||||
raise Exception("Invalid queue '%s'" % card)
|
||||
self._updateStats(card, "time", card.timeTaken())
|
||||
card.mod = intTime()
|
||||
card.usn = self.col.usn()
|
||||
|
|
|
@ -104,7 +104,7 @@ class Scheduler:
|
|||
# update daily limit
|
||||
self._updateStats(card, "rev")
|
||||
else:
|
||||
assert 0
|
||||
raise Exception("Invalid queue '%s'" % card)
|
||||
|
||||
# once a card has been answered once, the original due date
|
||||
# no longer applies
|
||||
|
|
Loading…
Reference in a new issue