1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-26 04:32:51 +01:00

[config] include exception type in error message

This commit is contained in:
Mike Fährmann 2023-05-02 17:49:02 +02:00
parent df11214281
commit 57cf942bb1
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88
2 changed files with 3 additions and 2 deletions

View File

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

View File

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