1
0
Fork 0
mirror of synced 2024-09-29 17:01:19 +13:00

Added an extra exception for when failing to connect to a channel

This commit is contained in:
Phxntxm 2016-10-14 19:49:20 -05:00
parent 96489aa850
commit e02e9ae3ed

View file

@ -256,7 +256,7 @@ class Music:
try: try:
state.voice = await self.bot.join_voice_channel(summoned_channel) state.voice = await self.bot.join_voice_channel(summoned_channel)
# Weird timeout error usually caused by the region someone is in # Weird timeout error usually caused by the region someone is in
except asyncio.TimeoutError: except (asyncio.TimeoutError, discord.ConnectionClosed):
await self.bot.say( await self.bot.say(
"Sorry, I couldn't connect! This can sometimes be caused by the server region you are in. " "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" "You can either try again, or try to change the server's"