summaryrefslogtreecommitdiff
path: root/lib/python/qmk/cli/list
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2020-10-07 10:46:10 +1100
committerDrashna Jael're <drashna@live.com>2021-01-12 22:43:31 -0800
commitae5ee61e7bbf24d3dc36c1a309d3af25a00a5444 (patch)
treeb44b65ac08b5e823eab84e349cdc0e260d748e81 /lib/python/qmk/cli/list
parentcce4f22e3a88cce06d8e199756984642c8eb5c44 (diff)
CLI: update subcommands to use return instead of exit() (#10323)
Diffstat (limited to 'lib/python/qmk/cli/list')
-rw-r--r--lib/python/qmk/cli/list/keymaps.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/python/qmk/cli/list/keymaps.py b/lib/python/qmk/cli/list/keymaps.py
index b18289eb35..49bc84b2ce 100644
--- a/lib/python/qmk/cli/list/keymaps.py
+++ b/lib/python/qmk/cli/list/keymaps.py
@@ -15,7 +15,7 @@ def list_keymaps(cli):
"""
if not is_keyboard(cli.config.list_keymaps.keyboard):
cli.log.error('Keyboard %s does not exist!', cli.config.list_keymaps.keyboard)
- exit(1)
+ return False
for name in qmk.keymap.list_keymaps(cli.config.list_keymaps.keyboard):
print(name)