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:
logger.warning(f"opus could not be loaded from {path} -- trying next?")
logger.error("opus could not be loaded!")
break
ctx.voice_client.play(
player,
after=lambda e: self.after(ctx)