Skip to content
Draft
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ All notable changes to KoalaBot will be documented in this file.
A lot of these commands will only be available to administrators

## [Unreleased]
### ColourRole
- Fix unexpected error due to cooldown
### Other
- Testing updated to use builders in dpytest 0.5.0

Expand Down
2 changes: 1 addition & 1 deletion cogs/ColourRole.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ async def custom_colour_error(self, ctx: commands.Context, error):
"""
if isinstance(error, commands.CheckFailure):
await ctx.send("You don't have the required role to use this command.")
else:
elif not isinstance(error, commands.CommandOnCooldown):
import time
KoalaBot.logger.error(f"Unexpected error occurred in Guild {ctx.guild.id}, channel {ctx.channel.id}. "
f"Error was of type {str(type(error))}. Cause was {error.__cause__}.")
Expand Down