Python os.EX_TEMPFAIL Constant
Example
Exit code if any temporary failure occurred:
#Import os Library
import os
# Exit code
os._exit(os.EX_TEMPFAIL)
Try it Yourself »
Definition and Usage
The os.EX_TEMPFAIL
exit code represents that a temporary failure occurred that may not be an error, such as network connection failure during a retryable operation.
Note: Available only on UNIX platforms.
Syntax
os.EX_TEMPFAIL
Technical Details
Return Value: | None |
---|---|
Python Version: | 2.3 |