aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar MarkKoz <[email protected]>2020-02-16 12:09:24 -0800
committerGravatar MarkKoz <[email protected]>2020-02-16 12:09:24 -0800
commit29e3c3e46242866820b9c4461378ed4b2e3afb47 (patch)
treed859b87a1d39b1701de93baad44543f4ff12a2dd
parentError handler: create separate function to handle ResponseCodeError (diff)
Error handler: log unhandled exceptions instead of re-raising
-rw-r--r--bot/cogs/error_handler.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/cogs/error_handler.py b/bot/cogs/error_handler.py
index 97124cb15..5eef045e8 100644
--- a/bot/cogs/error_handler.py
+++ b/bot/cogs/error_handler.py
@@ -165,9 +165,9 @@ class ErrorHandler(Cog):
f"```{e.__class__.__name__}: {e}```"
)
log.error(
- f"Error executing command invoked by {ctx.message.author}: {ctx.message.content}"
+ f"Error executing command invoked by {ctx.message.author}: {ctx.message.content}",
+ exc_info=e
)
- raise e
def setup(bot: Bot) -> None: