aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/fun/connect_four.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/connect_four.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/connect_four.py')
-rw-r--r--bot/exts/fun/connect_four.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/bot/exts/fun/connect_four.py b/bot/exts/fun/connect_four.py
index 6544dc48..eec092d1 100644
--- a/bot/exts/fun/connect_four.py
+++ b/bot/exts/fun/connect_four.py
@@ -1,4 +1,3 @@
-import asyncio
import random
from functools import partial
@@ -131,7 +130,7 @@ class Game:
while True:
try:
reaction, user = await self.bot.wait_for("reaction_add", check=self.predicate, timeout=30.0)
- except asyncio.TimeoutError:
+ except TimeoutError:
await self.channel.send(f"{self.player_active.mention}, you took too long. Game over!")
return None
else:
@@ -406,7 +405,7 @@ class ConnectFour(commands.Cog):
check=partial(self.get_player, ctx, announcement),
timeout=60.0
)
- except asyncio.TimeoutError:
+ except TimeoutError:
self.waiting.remove(ctx.author)
await announcement.delete()
await ctx.send(