1
0
Fork 0
mirror of synced 2024-06-27 02:31:04 +12:00

Changed error handling for removing a tag, to print the tag that is failing

This commit is contained in:
Phxntxm 2016-07-16 11:57:17 -05:00
parent ae6692867a
commit 61defbc824

View file

@ -197,7 +197,7 @@ class Core:
cursor.execute('select * from tags where server_id=%s and tag=%s', (ctx.message.server.id, tag))
result = cursor.fetchone()
if result is None:
await self.bot.say("That tag does not exist! You can't remove something if it doesn't exist...")
await self.bot.say("The tag {} does not exist! You can't remove something if it doesn't exist...".format(tag))
config.closeConnection()
return
cursor.execute('delete from tags where server_id=%s and tag=%s', (ctx.message.server.id, tag))