Skip to content

Commit 50d2081

Browse files
committed
Fix 02-python_operators_with_dependencies.py
1 parent 02f1981 commit 50d2081

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/08-python-operators/02-python_operators_with_dependencies.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,9 +149,10 @@
149149
import subprocess
150150

151151
process = subprocess.run(args, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
152-
if process.stderr:
152+
if process.returncode != 0 and process.stderr:
153153
raise RuntimeError(
154154
"Installing pygltf in a virtual environment failed with error:\n"
155+
+ f"return code = {process.returncode}\n"
155156
+ process.stderr.decode()
156157
+ "\n\n and log:\n"
157158
+ process.stdout.decode()

0 commit comments

Comments
 (0)