We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 654ead2 commit 5ffbb05Copy full SHA for 5ffbb05
Doc/library/subprocess.rst
@@ -662,7 +662,10 @@ execute, will be re-raised in the parent.
662
663
The most common exception raised is :exc:`OSError`. This occurs, for example,
664
when trying to execute a non-existent file. Applications should prepare for
665
-:exc:`OSError` exceptions.
+:exc:`OSError` exceptions. Note that, when ``"shell=True"``, :exc:`OSError`
666
+will be raised by the child only if the selected shell itself was not found.
667
+To determine if the shell failed to find the requested application, it is
668
+necessary to check the return code or output from the subprocess.
669
670
A :exc:`ValueError` will be raised if :class:`Popen` is called with invalid
671
arguments.
0 commit comments