6.4.5. main

main(*args)[source]

Does not sys.exit() like a when invoked as script, throws exceptions instead.