Skip to content

A feature-rich command-line audio/video downloader

[core] Handle `--load-info-json` format selection errors (#9392)

bashonly263a4b55ac17
diff --git a/yt_dlp/YoutubeDL.py b/yt_dlp/YoutubeDL.py
index 52a7093921..2a0fabfd73 100644
--- a/yt_dlp/YoutubeDL.py
+++ b/yt_dlp/YoutubeDL.py
@@ -3577,6 +3577,8 @@ class YoutubeDL:
raise
self.report_warning(f'The info failed to download: {e}; trying with URL {webpage_url}')
self.download([webpage_url])
+ except ExtractorError as e:
+ self.report_error(e)
return self._download_retcode
@staticmethod