def except_hook(type, value, traceback): sys.__excepthook__(type, value, traceback) input('Press any key to exit...\n')