Added exception handling to output
This commit is contained in:
parent
09464dd07d
commit
bdd443eea8
1 changed files with 5 additions and 2 deletions
|
@ -81,8 +81,11 @@ def main():
|
||||||
|
|
||||||
debug.print_line("\nStarting to render")
|
debug.print_line("\nStarting to render")
|
||||||
for i, output in enumerate(output_adapters):
|
for i, output in enumerate(output_adapters):
|
||||||
output.render(design)
|
try:
|
||||||
debug.print_line(str(i + 1) + " of " + str(len(output_adapters)) + " rendered")
|
output.render(design)
|
||||||
|
debug.print_line(str(i + 1) + " of " + str(len(output_adapters)) + " rendered")
|
||||||
|
except BaseException as ex:
|
||||||
|
debug.print_err(ex, "Failed to render output " + str(i + 1) + " of " + str(len(output_adapters)))
|
||||||
|
|
||||||
debug.print_line("=> Finished rendering" + "\n")
|
debug.print_line("=> Finished rendering" + "\n")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue