Skip to content

Commit

Permalink
[Discord] Update to handle TimeoutError in TriviaBoard.answer method
Browse files Browse the repository at this point in the history
Update to handle TimeoutError instead of asyncio.TimeoutError for Bot.wait_for in TriviaBoard.answer method
  • Loading branch information
Harmon758 committed Dec 18, 2023
1 parent 2c6804b commit 204cdd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Discord/cogs/trivia.py
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ async def answer(self, player, answer = None):
"message",
check = self.answer_check, timeout = self.seconds
)
except asyncio.TimeoutError:
except TimeoutError:
self.scores[player] = (
self.scores.get(player, 0) - int(self.value)
)
Expand Down

0 comments on commit 204cdd6

Please sign in to comment.