exit code of a script that raises an Exception?
thequietcenter at gmail.com
thequietcenter at gmail.com
Tue Sep 9 09:55:34 EDT 2014
Hello, after looking at the docs for Exception:
https://docs.python.org/2/library/exceptions.html
I do not see any information on the guaranteed exit code a script that exits because Python threw an exception.
I wonder if all exceptions throw the exact same non-zero exit code, or whether a specific exit code is assigned to each exception uniquely. Or whether the exit code behavior is undefined (especially since it appears to be undocumented).
Thanks,
Terrence
More information about the Python-list
mailing list