mirror of
https://github.com/myned/modufur.git
synced 2024-11-01 21:02:38 +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
|
||||
async def on_command_error(ctx, error):
|
||||
if isinstance(error, err.NotFound):
|
||||
pass
|
||||
print('NOT FOUND')
|
||||
elif isinstance(error, errext.CheckFailure):
|
||||
await ctx.send('**Insufficient permissions**', delete_after=10)
|
||||
await ctx.message.add_reaction('\N{NO ENTRY}')
|
||||
|
|
Loading…
Reference in a new issue