fixed ?selling now raising an error if no argument is provided

doc_update
Joey Hines 2018-09-19 09:25:02 -05:00
parent 7b36784a89
commit 1bf2ac931b
1 changed files with 4 additions and 0 deletions

View File

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