From c60ef5e2981e6adf23be5edbe1e5be3dce3518d2 Mon Sep 17 00:00:00 2001 From: Siphalor Date: Sun, 17 Jan 2021 16:06:53 +0100 Subject: [PATCH] Fix broken error handling --- bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot.py b/bot.py index f4f9e52..9fba5b3 100644 --- a/bot.py +++ b/bot.py @@ -78,7 +78,7 @@ async def on_message(message: discord.Message): loeh = await get_loeh(message.guild) if loeh is None: await message.channel.send('404: Löh not found!') - if loeh.voice is None: + elif loeh.voice is None: await message.channel.send('400: Löh not connected!') else: voice: discord.VoiceState = loeh.voice