From 91b4d811924d5e35ca72c959c5b2749f506fc4ac Mon Sep 17 00:00:00 2001 From: Matthew Gordon Date: Sat, 2 Mar 2024 19:40:43 -0400 Subject: [PATCH] Don't whow stack trace when terminating test run Don't show a Python exception and stack trace when the user stops a test run with CTRL-C --- scripts/run.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/run.py b/scripts/run.py index 8ae177a..a6fb878 100644 --- a/scripts/run.py +++ b/scripts/run.py @@ -27,6 +27,8 @@ def run(args): try: while locality_process.poll() is None: time.sleep(0.5) + except KeyboardInterrupt: + pass finally: if locality_process.poll() is None: locality_process.terminate()