diff --git a/src/cogs/audio_cog.py b/src/cogs/audio_cog.py index b41f877..280dda9 100644 --- a/src/cogs/audio_cog.py +++ b/src/cogs/audio_cog.py @@ -214,9 +214,9 @@ async def __search_tracks( search_result = await wavelink.Playable.search(safe_url) else: search_result = await wavelink.Playable.search(search_phrase) - + tracks = search_result[0] if search_result else [] - + if not tracks: raise YoutubeTrackNotFound