From bb6327d969624d1dd0c9e0b77bf774010dff986b Mon Sep 17 00:00:00 2001 From: Will Date: Tue, 30 Apr 2019 12:32:16 -0400 Subject: [PATCH] [Audio] Fix architecture blacklisting (#2634) --- redbot/cogs/audio/audio.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/redbot/cogs/audio/audio.py b/redbot/cogs/audio/audio.py index 397de8ff2..81db4397d 100644 --- a/redbot/cogs/audio/audio.py +++ b/redbot/cogs/audio/audio.py @@ -100,7 +100,7 @@ class Audio(commands.Cog): async def cog_before_invoke(self, ctx): if self.llsetup in [ctx.command, ctx.command.root_parent]: pass - elif self._connect_task.cancelled: + elif self._connect_task.cancelled(): await ctx.send( "You have attempted to run Audio's Lavalink server on an unsupported" " architecture. Only settings related commands will be available." @@ -143,7 +143,7 @@ class Audio(commands.Cog): continue except asyncio.CancelledError: log.exception("Invalid machine architecture, cannot run Lavalink.") - break + raise else: host = await self.config.host() password = await self.config.password()