aboutsummaryrefslogtreecommitdiffstats
path: root/gallery_dl/downloader/ytdl.py
diff options
context:
space:
mode:
Diffstat (limited to 'gallery_dl/downloader/ytdl.py')
-rw-r--r--gallery_dl/downloader/ytdl.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/gallery_dl/downloader/ytdl.py b/gallery_dl/downloader/ytdl.py
index b3bec21..950a72f 100644
--- a/gallery_dl/downloader/ytdl.py
+++ b/gallery_dl/downloader/ytdl.py
@@ -45,7 +45,7 @@ class YoutubeDLDownloader(DownloaderBase):
except (ImportError, SyntaxError) as exc:
self.log.error("Cannot import module '%s'",
getattr(exc, "name", ""))
- self.log.debug("", exc_info=True)
+ self.log.debug("", exc_info=exc)
self.download = lambda u, p: False
return False
self.ytdl_instance = ytdl_instance = ytdl.construct_YoutubeDL(
@@ -64,8 +64,8 @@ class YoutubeDLDownloader(DownloaderBase):
if not info_dict:
try:
info_dict = ytdl_instance.extract_info(url[5:], download=False)
- except Exception:
- pass
+ except Exception as exc:
+ self.log.debug("", exc_info=exc)
if not info_dict:
return False
@@ -120,8 +120,8 @@ class YoutubeDLDownloader(DownloaderBase):
self.out.start(pathfmt.path)
try:
ytdl_instance.process_info(info_dict)
- except Exception:
- self.log.debug("Traceback", exc_info=True)
+ except Exception as exc:
+ self.log.debug("", exc_info=exc)
return False
return True