aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/fun/tic_tac_toe.py
diff options
context:
space:
mode:
authorGravatar ChrisJL <[email protected]>2023-11-08 11:50:10 +0000
committerGravatar GitHub <[email protected]>2023-11-08 11:50:10 +0000
commit9a1b5f49e500d01e879a017b055a5fceff746df8 (patch)
tree5986c80aca7158e13b19a59f75cc3a6ca6d0f53e /bot/exts/fun/tic_tac_toe.py
parentBump rapidfuzz from 3.4.0 to 3.5.2 (#1394) (diff)
parentFormat code with new ruff rules (diff)
Merge pull request #1389 from python-discord/dependabot/pip/ruff-0.1.3
Bump ruff from 0.0.292 to 0.1.3
Diffstat (limited to 'bot/exts/fun/tic_tac_toe.py')
-rw-r--r--bot/exts/fun/tic_tac_toe.py5
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()