You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sys.exit() should only be called sparingly and usually not with 0.
Functions that need to report a non-zero status, should raise exceptions. The main function should catch these exceptions and translate them into an exit code which main would return.
Then in the if name == 'main' portion it would change to :
exit = main()
if exit:
sys.exit(exit)
The text was updated successfully, but these errors were encountered:
sys.exit() should only be called sparingly and usually not with 0.
Functions that need to report a non-zero status, should raise exceptions. The main function should catch these exceptions and translate them into an exit code which main would return.
Then in the if name == 'main' portion it would change to :
exit = main()
if exit:
sys.exit(exit)
The text was updated successfully, but these errors were encountered: