225 B
225 B
title | visible |
---|---|
Python | true |
[toc]
Exit on Keyboard Interrupt
try:
<put your code here>
except KeyboardInterrupt:
<stuff that needs to be done before exiting>
# return SIGINT code
exit(130)