Mailing List Archive

[issue24888] FileNotFoundException raised by subprocess.call
Irit Katriel <iritkatriel@gmail.com> added the comment:

The FileNotFoundException exception is coming from the Popen call, and the docs for subprocess.check_call already mention that it delegates to Popen.

There are quite a few different exceptions that Popen could raise, so I think David's general comment is valid, it would not make sense to mention just this one, or to try and list all of them.

----------
nosy: +iritkatriel

_______________________________________
Python tracker <report@bugs.python.org>
<https://bugs.python.org/issue24888>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com
[issue24888] FileNotFoundException raised by subprocess.call [ In reply to ]
Irit Katriel <iritkatriel@gmail.com> added the comment:

That said, the current wording does seem to imply that only CalledProcessErrors can be raised by this function so it might be worth clarifying that other exceptions can occur if the command could not run at all (without enumerating the precise exceptions).

----------
keywords: +easy

_______________________________________
Python tracker <report@bugs.python.org>
<https://bugs.python.org/issue24888>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com