1
0
Fork 0
mirror of https://github.com/myned/modufur.git synced 2024-12-24 22:27:28 +00:00

Remove error suppression

This commit is contained in:
Myned 2019-09-23 02:04:49 -04:00
parent ea2de2c1d7
commit 4191ea1ce3

View file

@ -118,8 +118,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): # elif isinstance(error, errext.CommandInvokeError):
print(f'ERROR : {error}') # 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):