mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 03:08:55 -05:00
Ignore command not found errors
This commit is contained in:
parent
f6383c2dfd
commit
0d985e5dc1
2
red.py
2
red.py
@ -88,6 +88,8 @@ async def on_command_error(error, ctx):
|
||||
ctx.command.qualified_name, type(error.original).__name__,
|
||||
str(error.original))
|
||||
await ctx.bot.send_message(ctx.message.channel, inline(oneliner))
|
||||
elif isinstance(error, commands.CommandNotFound):
|
||||
pass
|
||||
else:
|
||||
logger.exception(type(error).__name__, exc_info=error)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user