From 50d20816bc58c19c6c5f00917af714ea377a1aa5 Mon Sep 17 00:00:00 2001 From: "paul.profizi" Date: Mon, 16 Oct 2023 10:20:15 +0200 Subject: [PATCH] Fix 02-python_operators_with_dependencies.py --- .../02-python_operators_with_dependencies.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/08-python-operators/02-python_operators_with_dependencies.py b/examples/08-python-operators/02-python_operators_with_dependencies.py index b77f6a70fe..f1a22ac62e 100644 --- a/examples/08-python-operators/02-python_operators_with_dependencies.py +++ b/examples/08-python-operators/02-python_operators_with_dependencies.py @@ -149,9 +149,10 @@ import subprocess process = subprocess.run(args, stdout=subprocess.PIPE, stderr=subprocess.PIPE) - if process.stderr: + if process.returncode != 0 and process.stderr: raise RuntimeError( "Installing pygltf in a virtual environment failed with error:\n" + + f"return code = {process.returncode}\n" + process.stderr.decode() + "\n\n and log:\n" + process.stdout.decode()