From 1c5f2b39a0afc0ae91ed265a5297effd39135e8c Mon Sep 17 00:00:00 2001 From: Dylan Dizon Date: Tue, 6 Nov 2018 15:49:00 -0500 Subject: [PATCH] Fix missing permissions exception from being thrown to the enduser --- src/run.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/run.py b/src/run.py index 27bc182..7b0a55e 100644 --- a/src/run.py +++ b/src/run.py @@ -161,6 +161,8 @@ async def on_error(error, *args, **kwargs): async def on_command_error(ctx, error): if isinstance(error, err.NotFound): print('NOT FOUND') + elif isinstance(error, err.Forbidden): + pass elif isinstance(error, errext.MissingRequiredArgument): await ctx.send('**Missing required argument**') await ctx.message.add_reaction('\N{CROSS MARK}')