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