From 57cf942bb1594b0dbf7068ff59fe3d334d3bccf4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Tue, 2 May 2023 17:49:02 +0200 Subject: [PATCH] [config] include exception type in error message --- gallery_dl/config.py | 3 ++- gallery_dl/version.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/gallery_dl/config.py b/gallery_dl/config.py index d014293e..29d0155f 100644 --- a/gallery_dl/config.py +++ b/gallery_dl/config.py @@ -102,7 +102,8 @@ def load(files=None, strict=False, load=util.json_loads): log.error(exc) sys.exit(1) except Exception as exc: - log.warning("Could not parse '%s': %s", path, exc) + log.error("%s when loading '%s': %s", + exc.__class__.__name__, path, exc) if strict: sys.exit(2) else: diff --git a/gallery_dl/version.py b/gallery_dl/version.py index 0f6b1dff..39cfbd1c 100644 --- a/gallery_dl/version.py +++ b/gallery_dl/version.py @@ -6,4 +6,4 @@ # it under the terms of the GNU General Public License version 2 as # published by the Free Software Foundation. -__version__ = "1.25.4-dev" +__version__ = "1.26.0-dev"