Browse Source

Remplacement d'une erreur par un warning

pull/47/head
Louis 10 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 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

Loading…
Cancel
Save