From 61a3df1f11f2849b90ba3ba751ede43da4863baf Mon Sep 17 00:00:00 2001 From: Louis Date: Sat, 12 Dec 2015 23:52:14 +0100 Subject: [PATCH] Replace LOGGER.error by LOGGER.warning for catchable errors --- patacrep/content/__init__.py | 2 +- patacrep/content/include.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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)))