Added exception handling to output

This commit is contained in:
Maximilian Giller 2019-04-11 08:06:54 +02:00
parent 09464dd07d
commit bdd443eea8

View file

@ -81,8 +81,11 @@ def main():
debug.print_line("\nStarting to render")
for i, output in enumerate(output_adapters):
output.render(design)
debug.print_line(str(i + 1) + " of " + str(len(output_adapters)) + " rendered")
try:
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")