diff options
author | 2023-11-06 10:40:24 +0000 | |
---|---|---|
committer | 2023-11-06 10:42:02 +0000 | |
commit | 428c8def8ba10b4a512971115243b6993a3d940b (patch) | |
tree | 5986c80aca7158e13b19a59f75cc3a6ca6d0f53e /bot/exts/fun/tic_tac_toe.py | |
parent | Use ruff's isort implementation (diff) |
Format code with new ruff rules
Diffstat (limited to 'bot/exts/fun/tic_tac_toe.py')
-rw-r--r-- | bot/exts/fun/tic_tac_toe.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/bot/exts/fun/tic_tac_toe.py b/bot/exts/fun/tic_tac_toe.py index d4ae7107..f6ee6293 100644 --- a/bot/exts/fun/tic_tac_toe.py +++ b/bot/exts/fun/tic_tac_toe.py @@ -1,4 +1,3 @@ -import asyncio import random from collections.abc import Callable @@ -59,7 +58,7 @@ class Player: try: react, _ = await self.ctx.bot.wait_for("reaction_add", timeout=30.0, check=check_for_move) - except asyncio.TimeoutError: + except TimeoutError: return True, None else: return False, list(Emojis.number_emojis.keys())[list(Emojis.number_emojis.values()).index(react.emoji)] @@ -162,7 +161,7 @@ class Game: timeout=60.0, check=confirm_check ) - except asyncio.TimeoutError: + except TimeoutError: self.over = True self.canceled = True await confirm_message.delete() |