aboutsummaryrefslogtreecommitdiff
path: root/code/cogs
diff options
context:
space:
mode:
authorParker <contact@pkrm.dev>2024-11-29 00:24:18 -0600
committerParker <contact@pkrm.dev>2024-11-29 00:24:18 -0600
commit33493b7b4ec72636d73910cff93a9b3a3c863a2f (patch)
tree6a1a499a8100560cdffcd9421cacd6efad074a5e /code/cogs
parent4e1bce4b9a3780096f73d9423fad5d87e0067ad9 (diff)
Continue skipping tracks on LoadError
Diffstat (limited to 'code/cogs')
-rw-r--r--code/cogs/skip.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/code/cogs/skip.py b/code/cogs/skip.py
index 46a767f..eb4bf51 100644
--- a/code/cogs/skip.py
+++ b/code/cogs/skip.py
@@ -70,13 +70,13 @@ class Skip(commands.Cog):
else:
pass
- # Sometimes when a playlist/album of custom source tracks are loaded, one is not able to be found
- # so, when a user attempts to skip to that track, we get a LoadError. In this case, just pass it.
- try:
- await player.skip()
- except LoadError:
- pass
- await player.skip()
+ # Skip current track, continue skipping on LoadError
+ while True:
+ try:
+ await player.skip()
+ break
+ except LoadError:
+ continue
if not player.current:
embed = create_embed(