[issue42648] subprocess: add a helper/parameter to catch exec() OSError exception
Gregory P. Smith
report at bugs.python.org
Tue Dec 15 20:11:29 EST 2020
Gregory P. Smith <greg at krypto.org> added the comment:
arguably run() with check=True could've turned the OSError into a CalledProcessError [can't do that now, someone surely depends on it]. So if both are supplied, perhaps it does that instead of returning a CompletedProcess with .oserror set?
the API surface we've accumulated in subprocess over the decades is huge. :(
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42648>
_______________________________________
More information about the Python-bugs-list
mailing list