Commit: 9fc1cfc4f1e61d5c4c929ead6736afa2d88f5969
Author: Dmitry Dygalo
Date:   Sat Sep 10 22:55:28 2016 +0200
Branches: master
https://developer.blender.org/rB9fc1cfc4f1e61d5c4c929ead6736afa2d88f5969

Fix undefined variable on errors in Cycles ctests.

Reviewed By: brecht

Differential Revision: https://developer.blender.org/D2201

===================================================================

M       tests/python/cycles_render_tests.py

===================================================================

diff --git a/tests/python/cycles_render_tests.py 
b/tests/python/cycles_render_tests.py
index fb9a4b3..78b4b34 100755
--- a/tests/python/cycles_render_tests.py
+++ b/tests/python/cycles_render_tests.py
@@ -38,11 +38,11 @@ def render_file(filepath):
         elif b"blender probably wont start" in e.output:
             return "NO_START"
         return "CRASH"
-    except:
+    except BaseException as e:
         if os.path.exists(TEMP_FILE):
             os.remove(TEMP_FILE)
         if VERBOSE:
-            print(e.output.decode("utf-8"))
+            print(e)
         return "CRASH"

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to