210 B
210 B
title |
---|
Python |
[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)