[ytdl] expect all exception types when extracting info_dict (#8343)
not only 'YoutubeDLError's
This commit is contained in:
@@ -93,8 +93,12 @@ class YoutubeDLExtractor(Extractor):
|
|||||||
self.ytdl_url,
|
self.ytdl_url,
|
||||||
ytdl_instance.get_info_extractor(self.ytdl_ie_key),
|
ytdl_instance.get_info_extractor(self.ytdl_ie_key),
|
||||||
False, {}, True)
|
False, {}, True)
|
||||||
except ytdl_module.utils.YoutubeDLError:
|
# except ytdl_module.utils.YoutubeDLError:
|
||||||
raise exception.AbortExtraction("Failed to extract video data")
|
# raise exception.AbortExtraction("Failed to extract video data")
|
||||||
|
except Exception as exc:
|
||||||
|
raise exception.AbortExtraction(
|
||||||
|
f"Failed to extract video data "
|
||||||
|
f"({exc.__class__.__name__}: {exc})")
|
||||||
|
|
||||||
if not info_dict:
|
if not info_dict:
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user