In my code I'm trying to handle a logical error. I want to quit the program with an error code, if I do a sys.exit(1)
it raises a traceback error, which I don't want.
But, if I do os._exit(1)
it not the cleaner exit.
My need:
Quit like with os
with just the error code, but need a cleaner exit like with sys
.