From f42dc0257246ac31be59cbb6ab57a1a3d0754537 Mon Sep 17 00:00:00 2001 From: osmarks Date: Sun, 11 Oct 2020 17:50:01 +0100 Subject: [PATCH] fix required argument errors --- src/main.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.py b/src/main.py index 77d2f2b..e42fc74 100644 --- a/src/main.py +++ b/src/main.py @@ -43,6 +43,7 @@ async def on_message(message): async def on_command_error(ctx, err): #print(ctx, err) if isinstance(err, (commands.CommandNotFound, commands.CheckFailure)): return + if isinstance(err, commands.MissingRequiredArgument): return await ctx.send(embed=util.error_embed(str(err))) try: trace = re.sub("\n\n+", "\n", "\n".join(traceback.format_exception(err, err, err.__traceback__))) #print(trace)