From 33bc12b6bf96e17e9df8c72df135f2e4b5958799 Mon Sep 17 00:00:00 2001 From: Hxm Date: Sat, 25 Dec 2021 16:43:09 +0800 Subject: [PATCH] Update Gracefully-Stopping.md Add a missing colon in sample. --- docs/Gracefully-Stopping.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/Gracefully-Stopping.md b/docs/Gracefully-Stopping.md index eff12ffe..939fe5c5 100644 --- a/docs/Gracefully-Stopping.md +++ b/docs/Gracefully-Stopping.md @@ -41,7 +41,7 @@ def main(): Catching them in your code is really easy! They conveniently show up as top-level Exceptions. Just wrap your main logic in a try/except and you'll be able to catch when Gooey tries to shut down your process. ```python -try +try: # your code here except KeyboardInterrupt: # cleanup and shutdown or ignore