diff options
author | Nick Brassel <[email protected]> | 2024-06-15 19:37:47 +1000 |
---|---|---|
committer | GitHub <[email protected]> | 2024-06-15 10:37:47 +0100 |
commit | 0262161914133e6abfc306e675dbac3ba816a6ee (patch) | |
tree | 042db91495759ceb4bc54895017a4420427d581d /lib/python/qmk/cli/find.py | |
parent | d4654ab8934f795bbfc294f5b128a94aaa645a78 (diff) | |
download | qmk_firmware-0262161914133e6abfc306e675dbac3ba816a6ee.tar.gz qmk_firmware-0262161914133e6abfc306e675dbac3ba816a6ee.zip |
[CLI] Don't `exit()` when certain exceptions occur. (#23442)
Diffstat (limited to 'lib/python/qmk/cli/find.py')
-rw-r--r-- | lib/python/qmk/cli/find.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/python/qmk/cli/find.py b/lib/python/qmk/cli/find.py index 8f3a29c90c..bfed91e22c 100644 --- a/lib/python/qmk/cli/find.py +++ b/lib/python/qmk/cli/find.py @@ -2,6 +2,7 @@ """ from milc import cli from qmk.search import filter_help, search_keymap_targets +from qmk.util import maybe_exit_config @cli.argument( @@ -19,6 +20,8 @@ from qmk.search import filter_help, search_keymap_targets def find(cli): """Search through all keyboards and keymaps for a given search criteria. """ + maybe_exit_config(should_exit=False, should_reraise=True) + targets = search_keymap_targets([('all', cli.config.find.keymap)], cli.args.filter) for target in sorted(targets, key=lambda t: (t.keyboard, t.keymap)): print(f'{target}') |