1
0
Fork 0
mirror of synced 2024-05-07 06:02:24 +12:00

Add BadUnionArgument to the bad argument catch

This commit is contained in:
Dan Hess 2020-08-07 18:35:49 -05:00
parent aeead4f5b2
commit c671093a16

2
bot.py
View file

@ -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):