8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c05a790 commit 50ffbe3Copy full SHA for 50ffbe3
Doc/library/subprocess.rst
@@ -689,7 +689,10 @@ execute, will be re-raised in the parent.
689
690
The most common exception raised is :exc:`OSError`. This occurs, for example,
691
when trying to execute a non-existent file. Applications should prepare for
692
-:exc:`OSError` exceptions.
+:exc:`OSError` exceptions. Note that, when ``"shell=True"``, :exc:`OSError`
693
+will be raised by the child only if the selected shell itself was not found.
694
+To determine if the shell failed to find the requested application, it is
695
+necessary to check the return code or output from the subprocess.
696
697
A :exc:`ValueError` will be raised if :class:`Popen` is called with invalid
698
arguments.
0 commit comments