Skip to content

Commit

Permalink
Index error fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ShootGan committed Mar 30, 2024
1 parent 101e427 commit ae11208
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cogs/audio_cog.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit ae11208

Please sign in to comment.