aboutsummaryrefslogtreecommitdiff
path: root/lib/python/qmk/cli/kle2json.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/python/qmk/cli/kle2json.py')
-rwxr-xr-xlib/python/qmk/cli/kle2json.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/python/qmk/cli/kle2json.py b/lib/python/qmk/cli/kle2json.py
index 798f95fd1..3d1bb8c43 100755
--- a/lib/python/qmk/cli/kle2json.py
+++ b/lib/python/qmk/cli/kle2json.py
@@ -37,7 +37,8 @@ def kle2json(cli):
37 file_path = Path(os.environ['ORIG_CWD'], cli.args.filename) 37 file_path = Path(os.environ['ORIG_CWD'], cli.args.filename)
38 # Check for valid file_path for more graceful failure 38 # Check for valid file_path for more graceful failure
39 if not file_path.exists(): 39 if not file_path.exists():
40 return cli.log.error('File {fg_cyan}%s{style_reset_all} was not found.', file_path) 40 cli.log.error('File {fg_cyan}%s{style_reset_all} was not found.', file_path)
41 return False
41 out_path = file_path.parent 42 out_path = file_path.parent
42 raw_code = file_path.open().read() 43 raw_code = file_path.open().read()
43 # Check if info.json exists, allow overwrite with force 44 # Check if info.json exists, allow overwrite with force
@@ -50,8 +51,7 @@ def kle2json(cli):
50 except Exception as e: 51 except Exception as e:
51 cli.log.error('Could not parse KLE raw data: %s', raw_code) 52 cli.log.error('Could not parse KLE raw data: %s', raw_code)
52 cli.log.exception(e) 53 cli.log.exception(e)
53 # FIXME: This should be better 54 return False
54 return cli.log.error('Could not parse KLE raw data.')
55 keyboard = OrderedDict( 55 keyboard = OrderedDict(
56 keyboard_name=kle.name, 56 keyboard_name=kle.name,
57 url='', 57 url='',