mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
Fix handling of SystemExit and exit code. Patch by Brodie Rao.
This commit is contained in:
parent
edcf8daaed
commit
8731d7b3c6
2 changed files with 2 additions and 2 deletions
|
@ -266,7 +266,7 @@ class Process(object):
|
|||
exitcode = e.args[0]
|
||||
else:
|
||||
sys.stderr.write(str(e.args[0]) + '\n')
|
||||
exitcode = 0 if isinstance(e.args[0], str) else 1
|
||||
exitcode = 1
|
||||
except:
|
||||
exitcode = 1
|
||||
import traceback
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue