From 894dafeecb2a0696608ffa7445b9e29f48586f14 Mon Sep 17 00:00:00 2001 From: Jerome Petazzoni Date: Thu, 18 Mar 2021 14:57:46 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9A=A0=EF=B8=8F=20Improve=20error=20reportin?= =?UTF-8?q?g=20for=20missing=20content=20files?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- slides/markmaker.py | 1 + 1 file changed, 1 insertion(+) diff --git a/slides/markmaker.py b/slides/markmaker.py index 5173cd93..7a5a0772 100755 --- a/slides/markmaker.py +++ b/slides/markmaker.py @@ -213,6 +213,7 @@ def processcontent(content, filename): return (content, titles) if os.path.isfile(content): return processcontent(open(content).read(), content) + logging.warning("Content spans only one line (it's probably a file name) but no file found: {}".format(content)) if isinstance(content, list): subparts = [processcontent(c, filename) for c in content] markdown = "\n---\n".join(c[0] for c in subparts)