Skip to content

Commit 509c33c

Browse files
committed
Removed music class catch block
1 parent 3c08633 commit 509c33c

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

teapot/cogs/music.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -268,13 +268,7 @@ async def disconnect(self, ctx):
268268

269269
async def ensure_voice(self, ctx):
270270
""" This check ensures that the bot and command author are in the same voice channel. """
271-
try:
272-
player = self.bot.lavalink.player_manager.create(ctx.guild.id, endpoint=str(ctx.guild.region))
273-
except Exception as e: # players not found
274-
print("Music Player Error:" + str(e))
275-
raise commands.CommandInvokeError('An error occurred while contacting music player')
276-
# Create returns a player if one exists, otherwise creates.
277-
271+
player = self.bot.lavalink.player_manager.create(ctx.guild.id, endpoint=str(ctx.guild.region))
278272
should_connect = ctx.command.name in ('play') # Add commands that require joining voice to work.
279273

280274
if not ctx.author.voice or not ctx.author.voice.channel:

0 commit comments

Comments
 (0)