From dbbabd809a5679afa3ae70ce7ff4d22f487cebe0 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Wed, 6 Feb 2013 16:35:57 -0500 Subject: [PATCH] ui.cli: Quit after the last question Oops, should have tested that when I transitioned to Cmd ;). --- quizzer/ui/cli.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/quizzer/ui/cli.py b/quizzer/ui/cli.py index f133362..d2859cf 100644 --- a/quizzer/ui/cli.py +++ b/quizzer/ui/cli.py @@ -61,10 +61,10 @@ class QuestionCommandLine (_cmd.Cmd): if self.question.multiline: self._set_ps2() else: - self._answer() + return self._answer() def emptyline(self): - self._answer() + return self._answer() def _answer(self): if self.question.multiline: -- 2.26.2