mirror of
https://github.com/myned/modufur.git
synced 2024-11-01 21:02:38 +00:00
Add back ignoring of command errors
This commit is contained in:
parent
44dca56fd0
commit
073127c789
1 changed files with 2 additions and 0 deletions
|
@ -153,6 +153,8 @@ async def on_command_error(ctx, error):
|
||||||
with suppress(err.NotFound):
|
with suppress(err.NotFound):
|
||||||
if isinstance(error, err.NotFound):
|
if isinstance(error, err.NotFound):
|
||||||
print('NOT FOUND')
|
print('NOT FOUND')
|
||||||
|
elif isinstance(error, errext.CommandInvokeError):
|
||||||
|
print(f'ERROR : {error}')
|
||||||
elif isinstance(error, err.Forbidden):
|
elif isinstance(error, err.Forbidden):
|
||||||
pass
|
pass
|
||||||
elif isinstance(error, errext.CommandOnCooldown):
|
elif isinstance(error, errext.CommandOnCooldown):
|
||||||
|
|
Loading…
Reference in a new issue