From 6276998f2ffe433aeb9038718a4d350883d4c80b Mon Sep 17 00:00:00 2001 From: MaZderMind Date: Fri, 27 Feb 2015 12:20:12 +0100 Subject: [PATCH] exit on error before cleanup --- renderlib.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/renderlib.py b/renderlib.py index 436b043..ec2ec87 100644 --- a/renderlib.py +++ b/renderlib.py @@ -156,6 +156,9 @@ def rendertask(task): # as before, in non-debug-mode the thread-worker does all progress messages if debug: + if r != 0: + sys.exit() + print("cleanup") # remove the .frames-dir with all frames in it