From df52e10487eecb288cd4dcf2ef5a69e4f1f68017 Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Fri, 8 Nov 2024 15:48:31 -0500 Subject: [PATCH] devenv: Catch KeyboardInterrupt to avoid backtrace on ctr-c --- mesonbuild/mdevenv.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mesonbuild/mdevenv.py b/mesonbuild/mdevenv.py index ffcf3b020bb0..5d431446710f 100644 --- a/mesonbuild/mdevenv.py +++ b/mesonbuild/mdevenv.py @@ -217,6 +217,8 @@ def run_cmd(b: Build, args: T.List[str], workdir: T.Optional[str] = None) -> int return e.returncode except FileNotFoundError: raise MesonException(f'Command not found: {args[0]}') + except KeyboardInterrupt: + pass def run(options: argparse.Namespace) -> int: buildfile = Path(options.builddir, 'meson-private', 'build.dat')