[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,
|
||||
ytdl_instance.get_info_extractor(self.ytdl_ie_key),
|
||||
False, {}, True)
|
||||
except ytdl_module.utils.YoutubeDLError:
|
||||
raise exception.AbortExtraction("Failed to extract video data")
|
||||
# except ytdl_module.utils.YoutubeDLError:
|
||||
# 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:
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user