[CLI] Don't exit()
when certain exceptions occur. (#23442)
This commit is contained in:
parent
d4654ab893
commit
0262161914
10 changed files with 55 additions and 12 deletions
|
@ -12,6 +12,7 @@ from qmk.constants import QMK_FIRMWARE
|
|||
from qmk.commands import find_make, get_make_parallel_args, build_environment
|
||||
from qmk.search import search_keymap_targets, search_make_targets
|
||||
from qmk.build_targets import BuildTarget, JsonKeymapBuildTarget
|
||||
from qmk.util import maybe_exit_config
|
||||
|
||||
|
||||
def mass_compile_targets(targets: List[BuildTarget], clean: bool, dry_run: bool, no_temp: bool, parallel: int, **env):
|
||||
|
@ -100,6 +101,8 @@ all: {keyboard_safe}_{keymap_name}_binary
|
|||
def mass_compile(cli):
|
||||
"""Compile QMK Firmware against all keyboards.
|
||||
"""
|
||||
maybe_exit_config(should_exit=False, should_reraise=True)
|
||||
|
||||
if len(cli.args.builds) > 0:
|
||||
json_like_targets = list([Path(p) for p in filter(lambda e: Path(e).exists() and Path(e).suffix == '.json', cli.args.builds)])
|
||||
make_like_targets = list(filter(lambda e: Path(e) not in json_like_targets, cli.args.builds))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue