From f727f13a2be497359d042f216569121b8803714f Mon Sep 17 00:00:00 2001 From: Louis Date: Mon, 16 Jun 2014 19:33:58 +0200 Subject: [PATCH] Remplacement d'une erreur par un warning --- songbook_core/content/tex.py | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/songbook_core/content/tex.py b/songbook_core/content/tex.py index 083053c4..a5b5f2da 100644 --- a/songbook_core/content/tex.py +++ b/songbook_core/content/tex.py @@ -6,7 +6,7 @@ import logging import os -from songbook_core.content import Content, ContentError +from songbook_core.content import Content LOGGER = logging.getLogger(__name__) @@ -46,13 +46,11 @@ def parse(keyword, argument, contentlist, config): checked_file = os.path.relpath(os.path.join(path, filename)) break if not checked_file: - raise ContentError( - keyword, - "Cannot find file '{}' in '{}'.".format( - filename, - str(config['_songdir']), - ) + LOGGER.warning( + ("Cannot find file '{}' in '{}'. Compilation may fail " + "later.").format( filename, str(config['_songdir'])) ) + continue filelist.append(LaTeX(checked_file)) return filelist