From 428c8def8ba10b4a512971115243b6993a3d940b Mon Sep 17 00:00:00 2001 From: Chris Lovering Date: Mon, 6 Nov 2023 10:40:24 +0000 Subject: Format code with new ruff rules --- bot/exts/fun/snakes/_utils.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'bot/exts/fun/snakes/_utils.py') 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 -- cgit v1.2.3