From 18c485427196cb3421b0fd6c323fe776d228f474 Mon Sep 17 00:00:00 2001 From: RealStickman Date: Sat, 25 Jun 2022 11:41:24 +0200 Subject: [PATCH] (Grav GitSync) Automatic Commit from RealStickman --- pages/04.other/13.python/default.en.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 pages/04.other/13.python/default.en.md diff --git a/pages/04.other/13.python/default.en.md b/pages/04.other/13.python/default.en.md new file mode 100644 index 0000000..41e5cdd --- /dev/null +++ b/pages/04.other/13.python/default.en.md @@ -0,0 +1,14 @@ +--- +title: Python +--- + +[toc] +## Exit on Keyboard Interrupt +``` +try: + +except KeyboardInterrupt: + + # return SIGINT code + exit(130) +``` \ No newline at end of file