Skip to content

Commit

Permalink
[Discord] Update to handle TimeoutError in PokerRound.bet 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 PokerRound.bet method
  • Loading branch information
Harmon758 committed Dec 18, 2023
1 parent 711af4d commit dfd4e0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Discord/cogs/poker.py
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ async def bet(self, interaction, button):
message = await self.bot.wait_for(
"message", check = self.bet_check, timeout = self.timeout
)
except asyncio.TimeoutError:
except TimeoutError:
return

if self.is_finished():
Expand Down

0 comments on commit dfd4e0a

Please sign in to comment.