From bdd443eea8fd49ad07edf4f673760a7c5903a4d8 Mon Sep 17 00:00:00 2001 From: Max Date: Thu, 11 Apr 2019 08:06:54 +0200 Subject: [PATCH] Added exception handling to output --- Calendar/E-Paper.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Calendar/E-Paper.py b/Calendar/E-Paper.py index 21c0f6a..510674c 100644 --- a/Calendar/E-Paper.py +++ b/Calendar/E-Paper.py @@ -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")