[ytdl] expect all exception types when extracting info_dict (#8343)

not only 'YoutubeDLError's
This commit is contained in:
Mike Fährmann
2025-12-26 20:24:45 +01:00
parent daf6cc2c78
commit 05e6340867

View File

@@ -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