Skip to content

Commit

Permalink
Merge pull request #119 from python-discord/pass-exc-value-for-sentry
Browse files Browse the repository at this point in the history
Pass exception value into Sentry
  • Loading branch information
jchristgit authored May 19, 2024
2 parents 957164a + b3a5fbc commit b297eb3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bot/exts/core/error_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,10 @@ async def on_command_error(self, ctx: Context, error: CommandError) -> None:
embed = self._get_error_embed("Command not found", str(error))
else:
# If we haven't handled it by this point, it is considered an unexpected/handled error.
log.exception(f"Error executing command invoked by {ctx.message.author}: {ctx.message.content}")
log.exception(
f"Error executing command invoked by {ctx.message.author}: {ctx.message.content}",
exc_info=error,
)
embed = self._get_error_embed(
"Unexpected error",
"Sorry, an unexpected error occurred. Please let us know!\n\n"
Expand Down

0 comments on commit b297eb3

Please # to comment.