Fixed issue in info error handling
parent
48a1905017
commit
2175e025e5
|
@ -279,7 +279,7 @@ async def info(ctx, name: str):
|
||||||
try:
|
try:
|
||||||
loc = database_interface.find_location_by_name(name)[0]
|
loc = database_interface.find_location_by_name(name)[0]
|
||||||
except IndexError:
|
except IndexError:
|
||||||
await bot.say('{}, no location in the database matches {}.'.format(ctx.message.author.mentionm, name))
|
await bot.say('{}, no locations in the database match {}.'.format(ctx.message.author.mention, name))
|
||||||
return
|
return
|
||||||
|
|
||||||
await bot.say('{}'.format(loc))
|
await bot.say('{}'.format(loc))
|
||||||
|
|
Loading…
Reference in New Issue