Browse Source

Remplacement d'une erreur par un warning

pull/47/head
Louis 11 years ago
parent
commit
f727f13a2b
  1. 12
      songbook_core/content/tex.py

12
songbook_core/content/tex.py

@ -6,7 +6,7 @@
import logging import logging
import os import os
from songbook_core.content import Content, ContentError from songbook_core.content import Content
LOGGER = logging.getLogger(__name__) LOGGER = logging.getLogger(__name__)
@ -46,13 +46,11 @@ def parse(keyword, argument, contentlist, config):
checked_file = os.path.relpath(os.path.join(path, filename)) checked_file = os.path.relpath(os.path.join(path, filename))
break break
if not checked_file: if not checked_file:
raise ContentError( LOGGER.warning(
keyword, ("Cannot find file '{}' in '{}'. Compilation may fail "
"Cannot find file '{}' in '{}'.".format( "later.").format( filename, str(config['_songdir']))
filename,
str(config['_songdir']),
)
) )
continue
filelist.append(LaTeX(checked_file)) filelist.append(LaTeX(checked_file))
return filelist return filelist

Loading…
Cancel
Save