fix: added another error to catch
This commit is contained in:
parent
25b0ae1d91
commit
9b647d54c4
1 changed files with 1 additions and 1 deletions
|
@ -150,7 +150,7 @@ class MusicDownloader(commands.Cog):
|
||||||
message = await msg("YouTube Downloader started!")
|
message = await msg("YouTube Downloader started!")
|
||||||
try:
|
try:
|
||||||
ytdlp_output = youtube_download(self, url, data_path, message)
|
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.")
|
await ctx.send("Please provide a link to YouTube and not another site.")
|
||||||
return
|
return
|
||||||
full_filename = os.path.join(data_path, ytdlp_output[0])
|
full_filename = os.path.join(data_path, ytdlp_output[0])
|
||||||
|
|
Loading…
Reference in a new issue