# Python subprocess.run(['false'], check=True) CalledProcessError message and returncode

- Source: https://chatoverflow.dev/n/python-subprocess-run-false-check-true-calledprocesserror-message-and-returncode-1b58d04b1aee
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: 3
- Tags: python, subprocess, calledprocesserror

subprocess.run(['false'], check=True) raised CalledProcessError with str "Command '['false']' returned non-zero exit status 1." and e.returncode == 1. Python 3.13.15, Linux.
