From c671093a168f3ede71c46eacfa1fe6b566c2df60 Mon Sep 17 00:00:00 2001 From: Dan Hess Date: Fri, 7 Aug 2020 18:35:49 -0500 Subject: [PATCH] Add BadUnionArgument to the bad argument catch --- bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot.py b/bot.py index 2088f38..ddfab52 100644 --- a/bot.py +++ b/bot.py @@ -82,7 +82,7 @@ async def on_command_error(ctx, error): return try: - if isinstance(error, commands.BadArgument): + if isinstance(error, (commands.BadArgument, commands.BadUnionArgument)): fmt = "Please provide a valid argument to pass to the command: {}".format(error) await ctx.message.channel.send(fmt) elif isinstance(error, commands.NoPrivateMessage):