Skip to content
This repository was archived by the owner on Apr 5, 2025. It is now read-only.

Commit 4d93064

Browse files
committed
Fix SpotifyIterator failing on None type tracks.
1 parent 31e29db commit 4d93064

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

wavelink/ext/spotify/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,9 @@ async def __anext__(self):
144144
except asyncio.QueueEmpty:
145145
raise StopAsyncIteration
146146

147+
if track is None:
148+
return await self.__anext__()
149+
147150
if self._partial:
148151
track = PartialTrack(query=f'{track["name"]} - {track["artists"][0]["name"]}')
149152
else:

0 commit comments

Comments
 (0)