tools/helper.py: run() only detects error if return code is non-zero #258

Open
i-am-very-smart wants to merge 1 commits from i-am-very-smart/main into main
+1 -1
View File
@@ -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