Skip to content

Commit

Permalink
fix: push unhandled errors to logoo
Browse files Browse the repository at this point in the history
  • Loading branch information
Skelmis committed Jun 13, 2024
1 parent d0342cc commit b1ddcc9
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions suggestions/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,15 @@ async def on_slash_command_error(
return

if isinstance(exception, UnhandledError):
logger.critical(
"An unhandled exception occurred",
extra_metadata={
"error_id": error.id,
"author_id": error.user_id,
"guild_id": error.guild_id,
"traceback": commons.exception_as_string(exception),
},
)
return await interaction.send(
embed=self.error_embed(
"Something went wrong",
Expand Down

0 comments on commit b1ddcc9

Please sign in to comment.