3 ms·
Just pass check=True as an argument to subprocess.run and it will raise a CalledProcessError.
by jnwatson 5y ago
Just pass check=True as an argument to subprocess.run and it will raise a CalledProcessError.
- d0mine 5y agoThe issue is that `check=False` by default for the `run()` function.