From ef60eb4bba1e3a19555068b342113f6931fd7775 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sun, 6 May 2012 19:00:39 +0900 Subject: [PATCH] display warning when card has empty front --- aqt/reviewer.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/aqt/reviewer.py b/aqt/reviewer.py index 1822e5386..bbc438174 100644 --- a/aqt/reviewer.py +++ b/aqt/reviewer.py @@ -167,7 +167,11 @@ function _typeAnsPress() { self.typedAnswer = None c = self.card # grab the question and play audio - q = c.q() + if c.isEmpty(): + q = _("""\ +The front of this card is empty. Please run Tools>Maintenance>Empty Cards.""") + else: + q = c.q() if self._autoplay(c): playFromText(q) # render & update bottom