Hotfix for trivia

In case it runs out of questions in the current list
This commit is contained in:
Twentysix 2016-01-11 21:31:39 +01:00
parent a3482f939a
commit 4bce1994d0

3
red.py
View File

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