diff options
Diffstat (limited to 'lib/python/qmk/cli/kle2json.py')
| -rwxr-xr-x | lib/python/qmk/cli/kle2json.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/python/qmk/cli/kle2json.py b/lib/python/qmk/cli/kle2json.py index 66d504bfc..3bb744358 100755 --- a/lib/python/qmk/cli/kle2json.py +++ b/lib/python/qmk/cli/kle2json.py | |||
| @@ -27,7 +27,7 @@ def kle2json(cli): | |||
| 27 | cli.log.error('File {fg_cyan}%s{style_reset_all} was not found.', file_path) | 27 | cli.log.error('File {fg_cyan}%s{style_reset_all} was not found.', file_path) |
| 28 | return False | 28 | return False |
| 29 | out_path = file_path.parent | 29 | out_path = file_path.parent |
| 30 | raw_code = file_path.open().read() | 30 | raw_code = file_path.read_text(encoding='utf-8') |
| 31 | # Check if info.json exists, allow overwrite with force | 31 | # Check if info.json exists, allow overwrite with force |
| 32 | if Path(out_path, "info.json").exists() and not cli.args.force: | 32 | if Path(out_path, "info.json").exists() and not cli.args.force: |
| 33 | cli.log.error('File {fg_cyan}%s/info.json{style_reset_all} already exists, use -f or --force to overwrite.', out_path) | 33 | cli.log.error('File {fg_cyan}%s/info.json{style_reset_all} already exists, use -f or --force to overwrite.', out_path) |
