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:
parent
df11214281
commit
57cf942bb1
@ -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:
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user