mirror of
https://github.com/nexy7574/LCC-bot.git
synced 2024-09-19 18:16:34 +01:00
re-raise errors
This commit is contained in:
parent
a59d16738d
commit
67d8e67529
2 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
2
main.py
2
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
|
||||
|
|
Loading…
Reference in a new issue