From 120d44ffa5b19cf1e9a06efc752cbb493f3c6798 Mon Sep 17 00:00:00 2001 From: "Martin A. Brown" Date: Tue, 23 Feb 2016 21:58:56 -0800 Subject: [PATCH] make a bit more noise when building and skipping --- tldp/driver.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tldp/driver.py b/tldp/driver.py index 7e7969c..5f52852 100644 --- a/tldp/driver.py +++ b/tldp/driver.py @@ -73,6 +73,10 @@ def build(config, args): if not source.output: dirname = os.path.join(config.pubdir, source.stem) source.output = tldp.outputs.OutputDirectory(dirname) + if not source.doctype: + logger.warning("%s skipping document of unknown doctype", + source.stem) + continue output = source.output runner = source.doctype(source=source, output=output, config=config) runner.generate()