Skip to content

Commit 977a4df

Browse files
committed
Blender: Don't silently discard exceptions
1 parent 27aee18 commit 977a4df

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/windows/views/blender_listview.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -745,11 +745,12 @@ def Render(self, blend_file_path, target_script, preview_mode=False):
745745
# Run real command to render Blender project
746746
self.process = subprocess.Popen(command_render, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, startupinfo=startupinfo, universal_newlines=True)
747747

748-
except:
748+
except Exception as ex:
749749
# Error running command. Most likely the blender executable path in
750750
# the settings is incorrect, or is not a supported Blender version
751751
self.is_running = False
752752
self.blender_error_nodata.emit()
753+
log.error("Could not execute Blender: {}".format(ex))
753754
return
754755

755756
while self.is_running and self.process.poll() is None:

0 commit comments

Comments
 (0)