From 1bf2ac931b3e60d4c0b12e3c1abe603ba9fb69be Mon Sep 17 00:00:00 2001 From: Joey Hines Date: Wed, 19 Sep 2018 09:25:02 -0500 Subject: [PATCH] fixed ?selling now raising an error if no argument is provided --- geoffrey/cogs/Search_Commands.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/geoffrey/cogs/Search_Commands.py b/geoffrey/cogs/Search_Commands.py index debd533..c4a24e9 100644 --- a/geoffrey/cogs/Search_Commands.py +++ b/geoffrey/cogs/Search_Commands.py @@ -102,7 +102,11 @@ class Search_Commands: ?selling [item] """ item_name = get_name(args) + + if item_name is None: + raise commands.UserInputError try: + result = self.bot.bot_commands.selling(item_name) await ctx.send( '{}, the following shop(s) sell **{}**: \n{}'.format(ctx.message.author.mention, item_name, result))