From 7a3eb8d112d5c3d97bbd81588f3a81e7104dbaa4 Mon Sep 17 00:00:00 2001 From: Joey Hines Date: Thu, 27 Sep 2018 15:47:29 -0500 Subject: [PATCH] Fixed bug inf ?info, was looking for wrong error --- geoffrey/cogs/Search_Commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/geoffrey/cogs/Search_Commands.py b/geoffrey/cogs/Search_Commands.py index c4a24e9..3616230 100644 --- a/geoffrey/cogs/Search_Commands.py +++ b/geoffrey/cogs/Search_Commands.py @@ -130,7 +130,7 @@ class Search_Commands: info_str = self.bot.bot_commands.info(loc) await ctx.send(info_str) - except IndexError: + except LocationLookUpError: await ctx.send('{}, no locations in the database match **{}**.'.format(ctx.message.author.mention, loc)) @commands.command(pass_context=True)