We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 615689d commit cf8b0a1Copy full SHA for cf8b0a1
teapot/cogs/music.py
@@ -272,7 +272,7 @@ async def ensure_voice(self, ctx):
272
player = self.bot.lavalink.players.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
- pass
+ raise commands.CommandInvokeError('An error occurred while contacting music player')
276
# Create returns a player if one exists, otherwise creates.
277
278
should_connect = ctx.command.name in ('play') # Add commands that require joining voice to work.
0 commit comments