diff --git a/src/cogs/audio_cog.py b/src/cogs/audio_cog.py index 2fc7b0e..b41f877 100644 --- a/src/cogs/audio_cog.py +++ b/src/cogs/audio_cog.py @@ -214,8 +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] + + tracks = search_result[0] if search_result else [] + if not tracks: raise YoutubeTrackNotFound