fix: added another error to catch

This commit is contained in:
SeaswimmerTheFsh 2023-08-02 14:52:18 -04:00
parent 25b0ae1d91
commit 9b647d54c4
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: 5019678FD9CF50D8

View file

@ -150,7 +150,7 @@ class MusicDownloader(commands.Cog):
message = await msg("YouTube Downloader started!")
try:
ytdlp_output = youtube_download(self, url, data_path, message)
except utils.ExtractorError:
except utils.DownloadError or utils.ExtractorError:
await ctx.send("Please provide a link to YouTube and not another site.")
return
full_filename = os.path.join(data_path, ytdlp_output[0])