Message344880
Suggesting option to raise exception if process exits nonzero in `with subprocess.Popen(...):`
with subprocess.Popen('/bin/false'):
pass
I made the mistake of assuming this construct would raise an exception (CalledProcessError). It would be nice if there were a way to do that. |
|
Date |
User |
Action |
Args |
2019-06-06 22:16:29 | nlevitt | set | recipients:
+ nlevitt |
2019-06-06 22:16:29 | nlevitt | set | messageid: <1559859389.6.0.41932196936.issue37184@roundup.psfhosted.org> |
2019-06-06 22:16:29 | nlevitt | link | issue37184 messages |
2019-06-06 22:16:29 | nlevitt | create | |
|