From 96c77a21dbcc21bacab6bbdc56b696ddc9cb933f Mon Sep 17 00:00:00 2001 From: phxntxm Date: Tue, 23 Aug 2016 19:12:52 -0500 Subject: [PATCH] Added an exception check in case voice gets stuck, and the bot is already ina channel --- cogs/playlist.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cogs/playlist.py b/cogs/playlist.py index 5e56ef7..398a0ce 100644 --- a/cogs/playlist.py +++ b/cogs/playlist.py @@ -232,6 +232,8 @@ class Music: "Sorry, I couldn't connect! This can sometimes be caused by the server region you are in. " "You can either try again, or try to change the server's region and see if that fixes the issue") return + except discord.ClientException: + await state.voice.move_to(summoned_channel) # Return true so that we can invoke this, and ensure we succeeded return True