[Audio] Fix architecture blacklisting (#2634)

This commit is contained in:
Will 2019-04-30 12:32:16 -04:00 committed by GitHub
parent 476f441c9b
commit bb6327d969
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -100,7 +100,7 @@ class Audio(commands.Cog):
async def cog_before_invoke(self, ctx): async def cog_before_invoke(self, ctx):
if self.llsetup in [ctx.command, ctx.command.root_parent]: if self.llsetup in [ctx.command, ctx.command.root_parent]:
pass pass
elif self._connect_task.cancelled: elif self._connect_task.cancelled():
await ctx.send( await ctx.send(
"You have attempted to run Audio's Lavalink server on an unsupported" "You have attempted to run Audio's Lavalink server on an unsupported"
" architecture. Only settings related commands will be available." " architecture. Only settings related commands will be available."
@ -143,7 +143,7 @@ class Audio(commands.Cog):
continue continue
except asyncio.CancelledError: except asyncio.CancelledError:
log.exception("Invalid machine architecture, cannot run Lavalink.") log.exception("Invalid machine architecture, cannot run Lavalink.")
break raise
else: else:
host = await self.config.host() host = await self.config.host()
password = await self.config.password() password = await self.config.password()