From e1ab8daa7fda598a8f08f4bd5ce2724536f86be3 Mon Sep 17 00:00:00 2001 From: Louis Date: Sun, 27 Dec 2015 02:29:05 +0100 Subject: [PATCH] Turn an error into a warning --- patacrep/content/song.py | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/patacrep/content/song.py b/patacrep/content/song.py index dbdbe6c8..b1bf4378 100755 --- a/patacrep/content/song.py +++ b/patacrep/content/song.py @@ -90,13 +90,14 @@ def parse(keyword, argument, contentlist, config): LOGGER.debug('Parsing file "{}"…'.format(filename)) extension = filename.split(".")[-1] if extension not in plugins: - songlist.append_error(ContentError(message=( - 'I do not know how to parse "{}": name does ' - 'not end with one of {}. Ignored.' - ).format( - os.path.join(songdir.datadir, filename), - ", ".join(["'.{}'".format(key) for key in plugins.keys()]), - ))) + LOGGER.info( + ( + 'I do not know how to parse "%s": name does ' + 'not end with one of %s. Ignored.' + ), + os.path.join(songdir.datadir, filename), + ", ".join(["'.{}'".format(key) for key in plugins.keys()]) + ) continue try: renderer = SongRenderer(plugins[extension](