The exit or quit functions don't exist at the top-level if python is started with the -S flag, and will raise an error. Use sys.exit() instead. exit() is used and will fail if the python is run with the -S option, where as sys.exit() is guaranteed to work, regardless of the interpreter options.
Fixes #1253
Type of change
Please delete options that are not relevant.
[ ] Bug fix (non-breaking change which fixes an issue)
Checklist:
[ ] My code follows the style guidelines(Clean Code) of this project
[ ] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have created a helpful and easy to understand README.md
[ ] I have made corresponding changes to the documentation
[ ] My changes generate no new warnings
[ ] I have added tests/screenshots(if any) that prove my fix is effective or that my feature works
Description
The exit or quit functions don't exist at the top-level if python is started with the -S flag, and will raise an error. Use sys.exit() instead. exit() is used and will fail if the python is run with the -S option, where as sys.exit() is guaranteed to work, regardless of the interpreter options.
Fixes #1253
Type of change
Please delete options that are not relevant.
[ ] Bug fix (non-breaking change which fixes an issue)
Checklist:
[ ] My code follows the style guidelines(Clean Code) of this project
[ ] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have created a helpful and easy to understand
README.md
[ ] I have made corresponding changes to the documentation
[ ] My changes generate no new warnings
[ ] I have added tests/screenshots(if any) that prove my fix is effective or that my feature works