From 2c6804bae8d2dfa073fef6a9b73fd5c5cf5ee800 Mon Sep 17 00:00:00 2001 From: Harmon Date: Mon, 18 Dec 2023 04:24:33 -0600 Subject: [PATCH] [Discord] Update to handle TimeoutError in Adventure method Update to handle TimeoutError instead of asyncio.TimeoutError for Bot.wait_for in Adventure.woodcutting_active method --- Discord/cogs/adventure.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Discord/cogs/adventure.py b/Discord/cogs/adventure.py index 607c261742..d392239685 100644 --- a/Discord/cogs/adventure.py +++ b/Discord/cogs/adventure.py @@ -327,7 +327,7 @@ async def woodcutting_active(self, ctx, wood_type): m.author == ctx.author and m.content.lower() in ('y', "yes", 'n', "no") ) - except asyncio.TimeoutError: + except TimeoutError: return finally: await self.bot.attempt_delete_message(ask_message) @@ -356,7 +356,7 @@ async def woodcutting_active(self, ctx, wood_type): check = lambda m: m.author == ctx.author and m.content == prompt ) - except asyncio.TimeoutError: + except TimeoutError: return await ctx.embed_reply( f":stop_sign: You have stopped actively chopping {wood_type}" )