Added an extra exception for when failing to connect to a channel
This commit is contained in:
parent
96489aa850
commit
e02e9ae3ed
1 changed files with 1 additions and 1 deletions
|
@ -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"
|
||||||
|
|
Loading…
Reference in a new issue