--- title: Python visible: true --- [toc] ## Exit on Keyboard Interrupt ``` try: except KeyboardInterrupt: # return SIGINT code exit(130) ```