Browse Source

Replace LOGGER.error by LOGGER.warning for catchable errors

pull/176/head
Louis 9 years ago
parent
commit
61a3df1f11
  1. 2
      patacrep/content/__init__.py
  2. 4
      patacrep/content/include.py

2
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

4
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)))

Loading…
Cancel
Save