From f86880d63409ec567d71bbaebc185ccfd3755297 Mon Sep 17 00:00:00 2001 From: phxntxm Date: Tue, 12 Jul 2016 10:48:34 -0500 Subject: [PATCH] Fixed a couple errors --- cogs/core.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cogs/core.py b/cogs/core.py index 1a12666..a6b4143 100644 --- a/cogs/core.py +++ b/cogs/core.py @@ -125,7 +125,7 @@ class Core: @commands.group(pass_context=True, invoke_without_command=True) async def tag(self, ctx, tag: str): cursor = config.getCursor() - cursor.excute('use %s', config.db_default) + cursor.execute('use %s', config.db_default) cursor.execute('select * from tags where server_id=%s and tag=%s', (ctx.message.server.id, tag)) result = cursor.fetchone() if result is None: @@ -142,10 +142,10 @@ class Core: tag = result[0:result.find('-')] result = result[result.find('-') + 2:] cursor = config.getCursor() - cursor.excute('use %s', config.db_default) + cursor.execute('use %s', config.db_default) cursor.execute('select * from tags where server_id=%s and tag=%s', (ctx.message.server.id, tag)) - result = cursor.fetchone() - if result is not None: + response = cursor.fetchone() + if response is not None: await self.bot.say('That tag already exists! Please remove it and re-add it!') config.closeConnection() return