mirror of
https://github.com/myned/modufur.git
synced 2024-12-24 22:27:28 +00:00
Added minimal logging of NotFound errors
This commit is contained in:
parent
878eb4de06
commit
5d64aaf55c
1 changed files with 1 additions and 1 deletions
|
@ -142,7 +142,7 @@ async def on_error(error, *args, **kwargs):
|
||||||
@bot.event
|
@bot.event
|
||||||
async def on_command_error(ctx, error):
|
async def on_command_error(ctx, error):
|
||||||
if isinstance(error, err.NotFound):
|
if isinstance(error, err.NotFound):
|
||||||
pass
|
print('NOT FOUND')
|
||||||
elif isinstance(error, errext.CheckFailure):
|
elif isinstance(error, errext.CheckFailure):
|
||||||
await ctx.send('**Insufficient permissions**', delete_after=10)
|
await ctx.send('**Insufficient permissions**', delete_after=10)
|
||||||
await ctx.message.add_reaction('\N{NO ENTRY}')
|
await ctx.message.add_reaction('\N{NO ENTRY}')
|
||||||
|
|
Loading…
Reference in a new issue