From c720b7e7b0d1519a29d4f40f55a286d9da67f654 Mon Sep 17 00:00:00 2001 From: Phxntxm Date: Sat, 9 Jul 2016 08:29:17 -0500 Subject: [PATCH] Fixed accidental indent in method --- cogs/owner.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/cogs/owner.py b/cogs/owner.py index 77efb06..dad5a95 100644 --- a/cogs/owner.py +++ b/cogs/owner.py @@ -19,14 +19,14 @@ class Owner: @checks.isOwner() async def restart(self, ctx): """Forces the bot to restart""" - cursor = config.connection.cursor() - cursor.execute('use {0}'.format(config.db_default)) - sql = "update restart_server set channel_id={0} where id=1".format(ctx.message.channel.id) - cursor.execute(sql) - config.connection.commit() - await self.bot.say("Restarting; see you in the next life {0}!".format(ctx.message.author.mention)) - python = sys.executable - os.execl(python, python, *sys.argv) + cursor = config.connection.cursor() + cursor.execute('use {0}'.format(config.db_default)) + sql = "update restart_server set channel_id={0} where id=1".format(ctx.message.channel.id) + cursor.execute(sql) + config.connection.commit() + await self.bot.say("Restarting; see you in the next life {0}!".format(ctx.message.author.mention)) + python = sys.executable + os.execl(python, python, *sys.argv) @commands.command(pass_context=True) @checks.isOwner()