From 4a671a1b3bf95e5ea0e25774b084d59113aacf89 Mon Sep 17 00:00:00 2001 From: Jonas L Date: Tue, 4 Oct 2022 14:18:26 +0200 Subject: [PATCH] fix: clean exit by catching keyboard interrupt (#2206) --- tools/test-stream-input.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/test-stream-input.py b/tools/test-stream-input.py index fe4c086fe..792e2ab11 100755 --- a/tools/test-stream-input.py +++ b/tools/test-stream-input.py @@ -76,7 +76,7 @@ def run(): cmd.extend([stream_url]) print(" ".join(cmd)) - with suppress(subprocess.CalledProcessError): + with suppress(subprocess.CalledProcessError, KeyboardInterrupt): subprocess.run(cmd, check=True, text=True)