How to exit a script without traceback in Python

Exiting a script without traceback exits from Python without outputting anything.

Solution for How to exit a script without traceback in Python : You can use sys.exit() to exit without traceback Call sys.exit(status) to exit the currently running script with a status code of status.


how-to-exit-a-script-without-traceback-in-python