File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff 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 :
You can’t perform that action at this time.
0 commit comments