Skip to content

Commit

Permalink
πŸ›‘ Fix error handler hopefully
Browse files Browse the repository at this point in the history
  • Loading branch information
tookender committed Sep 1, 2024
1 parent a194481 commit cb35de0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion extensions/events/errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ async def on_command_error(self, ctx: commands.Context, error: Exception):
return

if ctx.message:
await ctx.message.add_reaction("❌")
try:
await ctx.message.add_reaction("❌")
except Exception as e:
pass

if reason := errors.get(type(error)):
embed = Embed(title="G-HOOOOOOST", description=reason.format(self=self, error=error))
Expand Down

0 comments on commit cb35de0

Please sign in to comment.