summaryrefslogtreecommitdiffstats
path: root/gallery_dl/extractor/ytdl.py
diff options
context:
space:
mode:
Diffstat (limited to 'gallery_dl/extractor/ytdl.py')
-rw-r--r--gallery_dl/extractor/ytdl.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/gallery_dl/extractor/ytdl.py b/gallery_dl/extractor/ytdl.py
index ea3b615..c135896 100644
--- a/gallery_dl/extractor/ytdl.py
+++ b/gallery_dl/extractor/ytdl.py
@@ -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