diff --git a/patacrep/content/__init__.py b/patacrep/content/__init__.py index 948fe017..b29c4854 100755 --- a/patacrep/content/__init__.py +++ b/patacrep/content/__init__.py @@ -145,7 +145,7 @@ def render(context, content): last = None for elem in content: if not isinstance(elem, Content): - LOGGER.error("Ignoring bad content item '{}'.".format(elem)) + LOGGER.warning("Ignoring bad content item '{}'.".format(elem)) continue last = elem diff --git a/patacrep/content/include.py b/patacrep/content/include.py index 30c99238..42b28e2e 100644 --- a/patacrep/content/include.py +++ b/patacrep/content/include.py @@ -50,8 +50,8 @@ def parse(keyword, config, argument, contentlist): ) as content_file: new_content = json.load(content_file) except Exception as error: # pylint: disable=broad-except - LOGGER.error(error) - LOGGER.error("Error while loading file '{}'.".format(filepath)) + LOGGER.warning(error) + LOGGER.warning("Error while loading file '{}'.".format(filepath)) sys.exit(1) config["datadir"].append(os.path.abspath(os.path.dirname(filepath)))