aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/fun/snakes/_utils.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/snakes/_utils.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/snakes/_utils.py')
-rw-r--r--bot/exts/fun/snakes/_utils.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/bot/exts/fun/snakes/_utils.py b/bot/exts/fun/snakes/_utils.py
index a967f47b..c48ecf8d 100644
--- a/bot/exts/fun/snakes/_utils.py
+++ b/bot/exts/fun/snakes/_utils.py
@@ -1,4 +1,3 @@
-import asyncio
import io
import json
import logging
@@ -453,7 +452,7 @@ class SnakeAndLaddersGame:
await startup.remove_reaction(reaction.emoji, user)
- except asyncio.TimeoutError:
+ except TimeoutError:
log.debug("Snakes and Ladders timed out waiting for a reaction")
await self.cancel_game()
return # We're done, no reactions for the last 5 minutes
@@ -630,7 +629,7 @@ class SnakeAndLaddersGame:
if self._check_all_rolled():
break
- except asyncio.TimeoutError:
+ except TimeoutError:
log.debug("Snakes and Ladders timed out waiting for a reaction")
await self.cancel_game()
return # We're done, no reactions for the last 5 minutes