aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/fun/tic_tac_toe.py
diff options
context:
space:
mode:
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()