stop generating content if a template can't be parsed or rendered

Change-Id: I44fb7211fa17625dac4f2b3cb15993dbbdb2a04a
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
This commit is contained in:
Doug Hellmann 2017-06-21 15:04:35 -04:00
parent e5b8772b38
commit 2cd097916d
1 changed files with 2 additions and 2 deletions

View File

@ -90,7 +90,7 @@ def main():
except Exception as e:
logger.error("parsing template %s failed: %s" %
(templateFile, e))
continue
raise
try:
output = template.render(projects=project_data)
@ -99,7 +99,7 @@ def main():
except Exception as e:
logger.error("rendering template %s failed: %s" %
(templateFile, e))
continue
raise
try:
target_directory = os.path.join(args.output_directory,