From 0225d90078b4d41dd0f702e79f752418a164df91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Tue, 4 Dec 2018 19:24:50 +0100 Subject: [PATCH] add exception name and traceback for OSErrors --- gallery_dl/job.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gallery_dl/job.py b/gallery_dl/job.py index 3eb0b309..20435975 100644 --- a/gallery_dl/job.py +++ b/gallery_dl/job.py @@ -75,14 +75,16 @@ class Job(): except exception.StopExtraction: pass except OSError as exc: - log.error("Unable to download data: %s", exc) + log.error("Unable to download data: %s: %s", + exc.__class__.__name__, exc) + log.debug("", exc_info=True) except Exception as exc: log.error(("An unexpected error occurred: %s - %s. " "Please run gallery-dl again with the --verbose flag, " "copy its output and report this issue on " "https://github.com/mikf/gallery-dl/issues ."), exc.__class__.__name__, exc) - log.debug("Traceback", exc_info=True) + log.debug("", exc_info=True) self.handle_finalize() def dispatch(self, msg):