diff options
author | Ryan <fauxpark@gmail.com> | 2020-10-07 10:46:10 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-06 16:46:10 -0700 |
commit | 2c9ffd47391b8dec98db94bef9b2f5c14a57cf94 (patch) | |
tree | 57f743159e972e3e2cd215ab256675d3c84d1832 /lib/python/qmk/cli/new/keymap.py | |
parent | 2013f6313430b977e557e482d30daa279a46e75d (diff) | |
download | qmk_firmware-2c9ffd47391b8dec98db94bef9b2f5c14a57cf94.tar.gz qmk_firmware-2c9ffd47391b8dec98db94bef9b2f5c14a57cf94.zip |
CLI: update subcommands to use return instead of exit() (#10323)
Diffstat (limited to 'lib/python/qmk/cli/new/keymap.py')
-rwxr-xr-x | lib/python/qmk/cli/new/keymap.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/python/qmk/cli/new/keymap.py b/lib/python/qmk/cli/new/keymap.py index 474fe7974f..52c564997b 100755 --- a/lib/python/qmk/cli/new/keymap.py +++ b/lib/python/qmk/cli/new/keymap.py @@ -29,15 +29,15 @@ def new_keymap(cli): # check directories if not kb_path.exists(): cli.log.error('Keyboard %s does not exist!', kb_path) - exit(1) + return False if not keymap_path_default.exists(): cli.log.error('Keyboard default %s does not exist!', keymap_path_default) - exit(1) + return False if keymap_path_new.exists(): cli.log.error('Keymap %s already exists!', keymap_path_new) - exit(1) + return False # create user directory with default keymap files shutil.copytree(keymap_path_default, keymap_path_new, symlinks=True) |