Skip to content

Commit cf8b0a1

Browse files
committed
Raised an error for music class
1 parent 615689d commit cf8b0a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

teapot/cogs/music.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ async def ensure_voice(self, ctx):
272272
player = self.bot.lavalink.players.create(ctx.guild.id, endpoint=str(ctx.guild.region))
273273
except Exception as e: # players not found
274274
print("Music Player Error:" + str(e))
275-
pass
275+
raise commands.CommandInvokeError('An error occurred while contacting music player')
276276
# Create returns a player if one exists, otherwise creates.
277277

278278
should_connect = ctx.command.name in ('play') # Add commands that require joining voice to work.

0 commit comments

Comments
 (0)