From 1ffb79f8524e8f4e1492c908b6fcb5f137cbd9e3 Mon Sep 17 00:00:00 2001 From: Fixator10 Date: Sun, 19 May 2019 14:14:12 +0400 Subject: [PATCH] [events] send help on BadUnionArgument exception (#2707) * [events] send help on BadUnionArgument exception * Update redbot/core/events.py Co-Authored-By: Michael H --- redbot/core/events.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/redbot/core/events.py b/redbot/core/events.py index dc60c4028..aacc88017 100644 --- a/redbot/core/events.py +++ b/redbot/core/events.py @@ -191,7 +191,7 @@ def init_events(bot, cli_flags): await ctx.send(error.args[0]) else: await ctx.send_help() - elif isinstance(error, commands.BadArgument): + elif isinstance(error, commands.UserInputError): await ctx.send_help() elif isinstance(error, commands.DisabledCommand): disabled_message = await bot.db.disabled_command_msg()