simplify some logging calls

This commit is contained in:
Mike Fährmann
2019-12-10 21:30:08 +01:00
parent c9ef1b21c3
commit c4702ec9b6
4 changed files with 6 additions and 6 deletions

View File

@@ -57,7 +57,7 @@ def load(files=None, strict=False, fmt="json"):
confdict = parsefunc(file)
except OSError as exc:
if strict:
log.error("%s", exc)
log.error(exc)
sys.exit(1)
except Exception as exc:
log.warning("Could not parse '%s': %s", path, exc)