mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 22:42:25 -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._answerRevCard(card, ease)
|
||||||
self._updateStats(card, "rev")
|
self._updateStats(card, "rev")
|
||||||
else:
|
else:
|
||||||
raise Exception("Invalid queue")
|
raise Exception("Invalid queue '%s'" % card)
|
||||||
self._updateStats(card, "time", card.timeTaken())
|
self._updateStats(card, "time", card.timeTaken())
|
||||||
card.mod = intTime()
|
card.mod = intTime()
|
||||||
card.usn = self.col.usn()
|
card.usn = self.col.usn()
|
||||||
|
|
|
@ -104,7 +104,7 @@ class Scheduler:
|
||||||
# update daily limit
|
# update daily limit
|
||||||
self._updateStats(card, "rev")
|
self._updateStats(card, "rev")
|
||||||
else:
|
else:
|
||||||
assert 0
|
raise Exception("Invalid queue '%s'" % card)
|
||||||
|
|
||||||
# once a card has been answered once, the original due date
|
# once a card has been answered once, the original due date
|
||||||
# no longer applies
|
# no longer applies
|
||||||
|
|
Loading…
Reference in a new issue