From ee694b59fe27c3941f427ed35fa3b8d262cea9db Mon Sep 17 00:00:00 2001 From: Phxntxm Date: Sat, 15 Oct 2016 14:46:12 -0500 Subject: [PATCH] Added one more check to joining a voice channel (man there sure are a lot of different errors that can happen with one voice connection call.....) --- cogs/playlist.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cogs/playlist.py b/cogs/playlist.py index a47635c..712d565 100644 --- a/cogs/playlist.py +++ b/cogs/playlist.py @@ -256,7 +256,7 @@ class Music: try: state.voice = await self.bot.join_voice_channel(summoned_channel) # Weird timeout error usually caused by the region someone is in - except (asyncio.TimeoutError, discord.ConnectionClosed): + except (asyncio.TimeoutError, discord.ConnectionClosed, ConnectionResetError): await self.bot.say( "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"