Skip to content

Commit

Permalink
[Discord] Update to handle TimeoutError in Adventure method
Browse files Browse the repository at this point in the history
Update to handle TimeoutError instead of asyncio.TimeoutError for Bot.wait_for in Adventure.woodcutting_active method
  • Loading branch information
Harmon758 committed Dec 18, 2023
1 parent dfd4e0a commit 2c6804b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Discord/cogs/adventure.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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}"
)
Expand Down

0 comments on commit 2c6804b

Please sign in to comment.