smaller code and text changes

This commit is contained in:
Mike Fährmann
2017-09-30 18:52:23 +02:00
parent ad4580800c
commit b319f4bab3
7 changed files with 31 additions and 33 deletions

View File

@@ -66,9 +66,8 @@ def load(*files, format="json", strict=False):
if strict:
log.error("Configuration file '%s' not found", path)
sys.exit(1)
except Exception as exception:
log.warning("Could not parse '%s'", path)
log.warning(exception)
except Exception as exc:
log.warning("Could not parse '%s': %s", path, exc)
if strict:
sys.exit(2)