From e78500e44e8a5cc1b97910e89592aae90ecfd6e6 Mon Sep 17 00:00:00 2001 From: i-am-very-smart <46800886+i-am-very-smart@users.noreply.github.com> Date: Sun, 11 Jan 2026 17:23:54 +1100 Subject: [PATCH] tools/helper.py: run() only detects error if return code is non-zero --- tools/helper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/helper.py b/tools/helper.py index a4dd78b..e8afe89 100644 --- a/tools/helper.py +++ b/tools/helper.py @@ -40,7 +40,7 @@ def run(args: list, env: Optional[str] = None, ignore: Optional[str] = None): ) # print(result.stdout.decode()) - if result.stderr: + if result.returncode != 0 and result.stderr: error = result.stderr.decode("utf-8") if ignore and re.match(ignore, error): return result