From 2390eb6c435de717e704043c45ce24c47ab1cf7f Mon Sep 17 00:00:00 2001 From: u8slvn Date: Fri, 30 Aug 2024 09:59:35 +0200 Subject: [PATCH] feat: handle keyboardinterrupt exception --- src/doggo/__main__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/doggo/__main__.py b/src/doggo/__main__.py index 88c538f..e7d6d02 100644 --- a/src/doggo/__main__.py +++ b/src/doggo/__main__.py @@ -32,7 +32,10 @@ def run() -> None: if COMPILED_ENV and WIN: pyi_splash.close() - world.start() + try: + world.start() + except KeyboardInterrupt: + world.stop() if __name__ == "__main__":