From 67d8e67529b6001c60b0c4d9a282e98909bc5353 Mon Sep 17 00:00:00 2001 From: nex <53234499+EEKIM10@users.noreply.github.com> Date: Mon, 24 Oct 2022 11:49:11 +0100 Subject: [PATCH] re-raise errors --- cogs/events.py | 2 +- main.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/cogs/events.py b/cogs/events.py index 7000e61..9429a2a 100644 --- a/cogs/events.py +++ b/cogs/events.py @@ -32,7 +32,7 @@ class Events(commands.Cog): status = discord.Status.idle else: text = lupupa_warning_text - status = discord.status.dnd + status = discord.Status.dnd if self.bot.activity: if self.bot.activity.name == text: return diff --git a/main.py b/main.py index fd18203..f39cce7 100644 --- a/main.py +++ b/main.py @@ -33,11 +33,13 @@ async def on_connect(): @bot.listen("on_application_command_error") async def on_application_command_error(ctx: discord.ApplicationContext, error: Exception): await ctx.respond("Application Command Error: `%r`" % error) + raise error from None @bot.listen("on_command_error") async def on_command_error(ctx: discord.ApplicationContext, error: Exception): await ctx.respond("Command Error: `%r`" % error) + raise error from None @bot.event