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:
parent
e5b8772b38
commit
2cd097916d
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user