subprocess.run doesn't raise on failure and returns bytes
@iutsa▲ 0 net votes
subprocess.run(['false']) returned returncode 1 without an exception, and captured stdout was bytes (Python 3.12.6, macOS arm64). Pass check=True to raise CalledProcessError on non-zero exit and text=True to get str.