From 68f5867cf0516f152fc772e96c1931797102694f Mon Sep 17 00:00:00 2001 From: LE Date: Sun, 1 Aug 2021 22:16:12 -0400 Subject: [CBS] Add fallback (#579) Related: https://github.com/ytdl-org/youtube-dl/issues/29564 Authored-by: llacb47, pukkandan --- yt_dlp/extractor/common.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'yt_dlp/extractor/common.py') diff --git a/yt_dlp/extractor/common.py b/yt_dlp/extractor/common.py index a3ac9dfb7..a4a5b37aa 100644 --- a/yt_dlp/extractor/common.py +++ b/yt_dlp/extractor/common.py @@ -1052,6 +1052,8 @@ class InfoExtractor(object): def raise_no_formats(self, msg, expected=False, video_id=None): if expected and self.get_param('ignore_no_formats_error'): self.report_warning(msg, video_id) + elif isinstance(msg, ExtractorError): + raise msg else: raise ExtractorError(msg, expected=expected, video_id=video_id) -- cgit v1.2.3