From 4bce1994d082cfaff72493afa85730126210e13e Mon Sep 17 00:00:00 2001 From: Twentysix Date: Mon, 11 Jan 2016 21:31:39 +0100 Subject: [PATCH] Hotfix for trivia In case it runs out of questions in the current list --- red.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/red.py b/red.py index 79f558787..61130859e 100644 --- a/red.py +++ b/red.py @@ -419,6 +419,9 @@ class Trivia(): if score == settings["TRIVIA_MAX_SCORE"]: await self.endGame() return True + if self.questionList == []: + await self.endGame() + return True self.currentQ = choice(self.questionList) self.questionList.remove(self.currentQ) self.status = "waiting for answer"