From 9b647d54c4961ad1fa151578f29b6811bd588d8b Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Wed, 2 Aug 2023 14:52:18 -0400 Subject: [PATCH] fix: added another error to catch --- musicdownloader/musicdownloader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/musicdownloader/musicdownloader.py b/musicdownloader/musicdownloader.py index b2d7418..5965603 100644 --- a/musicdownloader/musicdownloader.py +++ b/musicdownloader/musicdownloader.py @@ -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])