Skip to content

Commit

Permalink
devenv: Catch KeyboardInterrupt to avoid backtrace on ctr-c
Browse files Browse the repository at this point in the history
  • Loading branch information
xclaesse committed Nov 8, 2024
1 parent 622c7dc commit 0384154
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mesonbuild/mdevenv.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,8 @@ def run_cmd(b: Build, args: T.List[str], workdir: T.Optional[Path] = None) -> in
return e.returncode
except FileNotFoundError:
raise MesonException(f'Command not found: {args[0]}')
except KeyboardInterrupt:
return 0

def run(options: argparse.Namespace) -> int:
buildfile = Path(options.builddir, 'meson-private', 'build.dat')
Expand Down

0 comments on commit 0384154

Please sign in to comment.