Say which card failed with an exception

This commit is contained in:
evandrocoan 2020-05-28 14:46:38 -03:00
parent 9594a3ef9b
commit 3318f23ff3
2 changed files with 2 additions and 2 deletions

View file

@ -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()

View file

@ -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