(Grav GitSync) Automatic Commit from RealStickman

This commit is contained in:
RealStickman 2022-06-25 11:41:24 +02:00 committed by GitSync
parent ec4ae98264
commit 18c4854271

View File

@ -0,0 +1,14 @@
---
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)
```