Fix handling of SystemExit and exit code. Patch by Brodie Rao.

This commit is contained in:
Richard Oudkerk 2013-11-17 17:24:11 +00:00
parent edcf8daaed
commit 8731d7b3c6
2 changed files with 2 additions and 2 deletions

View file

@ -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