Fix: break out of infinite loop

This commit is contained in:
a 2024-10-21 22:53:25 +00:00
parent 3e70e7c3b7
commit edfc281d6c

View file

@ -463,6 +463,7 @@ class Music(Cog):
except: except:
logger.warning(f"opus could not be loaded from {path} -- trying next?") logger.warning(f"opus could not be loaded from {path} -- trying next?")
logger.error("opus could not be loaded!") logger.error("opus could not be loaded!")
break
ctx.voice_client.play( ctx.voice_client.play(
player, player,
after=lambda e: self.after(ctx) after=lambda e: self.after(ctx)