Skip to content

Commit

Permalink
Change exception to not be as broad
Browse files Browse the repository at this point in the history
  • Loading branch information
ToothyDev committed Aug 23, 2024
1 parent 1723930 commit c074cf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cogs/events/errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ async def on_application_command_error(self, ctx: discord.ApplicationContext,
return await ctx.respond("The service this command uses had an error. Try again later.", ephemeral=True)

await ctx.respond("An unknown error occured! This will be logged and fixed!", ephemeral=True)
raise Exception(
raise RuntimeError(
f"{ctx.author.global_name} used /{ctx.command} which caused {err} - Error class: {err.__class__.__name__}") from err


Expand Down

0 comments on commit c074cf0

Please sign in to comment.