diff --git a/c/update.py b/c/update.py index c0d81a3..66839be 100644 --- a/c/update.py +++ b/c/update.py @@ -17,9 +17,9 @@ class Update(commands.Cog): Make pull from git repository and restart """ - res = await self.bot.ch(server_id=context.guild.id) - channel = self.bot.get_channel(res) try: + res = await self.bot.ch(server_id=context.guild.id) + channel = self.bot.get_channel(res) channel = int(channel) except: channel = context