From bd4a0da923193b704edf82927dbdb7839f2d1ad0 Mon Sep 17 00:00:00 2001 From: Bertrand Massot Date: Wed, 21 Aug 2024 16:42:25 +0200 Subject: [PATCH] fix: replace bare except with KeyboardInterrupt --- nervous_sensors/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nervous_sensors/cli.py b/nervous_sensors/cli.py index 4905a99..5cb97c6 100644 --- a/nervous_sensors/cli.py +++ b/nervous_sensors/cli.py @@ -48,7 +48,7 @@ def cli(sensors, gui, folder, lsl, parallel): try: asyncio.run(run_app(true_sensors, gui, folder, lsl, parallel)) - except: + except KeyboardInterrupt: print_stop_info("Shutting down Nervous framework") os._exit(0)