From 428c8def8ba10b4a512971115243b6993a3d940b Mon Sep 17 00:00:00 2001 From: Chris Lovering Date: Mon, 6 Nov 2023 10:40:24 +0000 Subject: Format code with new ruff rules --- bot/exts/fun/trivia_quiz.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bot/exts/fun/trivia_quiz.py') diff --git a/bot/exts/fun/trivia_quiz.py b/bot/exts/fun/trivia_quiz.py index b96007b5..4f352b71 100644 --- a/bot/exts/fun/trivia_quiz.py +++ b/bot/exts/fun/trivia_quiz.py @@ -430,7 +430,7 @@ class TriviaQuiz(commands.Cog): try: msg = await self.bot.wait_for("message", check=check_func(quiz_entry.var_tol), timeout=10) - except asyncio.TimeoutError: + except TimeoutError: # In case of TimeoutError and the game has been stopped, then do nothing. if not self.game_status[ctx.channel.id]: break -- cgit v1.2.3