diff options
author | Zach White <skullydazed@gmail.com> | 2021-08-09 08:34:14 -0700 |
---|---|---|
committer | Zach White <skullydazed@gmail.com> | 2021-08-09 08:34:14 -0700 |
commit | 12681bacc4b2d845bd01b0e65b00e3d8775ac515 (patch) | |
tree | decee0f1907bd93bd36d0349d72dda34da9c06f5 /lib/python/qmk/json_schema.py | |
parent | 65e376085356c18382d6a5d8dc54c8461144152e (diff) | |
parent | e6c171bdd639fef41a68902ce5a379a0565ed99b (diff) | |
download | qmk_firmware-12681bacc4b2d845bd01b0e65b00e3d8775ac515.tar.gz qmk_firmware-12681bacc4b2d845bd01b0e65b00e3d8775ac515.zip |
Merge remote-tracking branch 'origin/master' into develop
Conflicts:
keyboards/kbdfans/kbd67/mkiirgb/mkiirgb.c
Diffstat (limited to 'lib/python/qmk/json_schema.py')
-rw-r--r-- | lib/python/qmk/json_schema.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/python/qmk/json_schema.py b/lib/python/qmk/json_schema.py index 3e5663a29..cbc5bff51 100644 --- a/lib/python/qmk/json_schema.py +++ b/lib/python/qmk/json_schema.py | |||
@@ -17,9 +17,12 @@ def json_load(json_file): | |||
17 | try: | 17 | try: |
18 | return hjson.load(json_file.open(encoding='utf-8')) | 18 | return hjson.load(json_file.open(encoding='utf-8')) |
19 | 19 | ||
20 | except json.decoder.JSONDecodeError as e: | 20 | except (json.decoder.JSONDecodeError, hjson.HjsonDecodeError) as e: |
21 | cli.log.error('Invalid JSON encountered attempting to load {fg_cyan}%s{fg_reset}:\n\t{fg_red}%s', json_file, e) | 21 | cli.log.error('Invalid JSON encountered attempting to load {fg_cyan}%s{fg_reset}:\n\t{fg_red}%s', json_file, e) |
22 | exit(1) | 22 | exit(1) |
23 | except Exception as e: | ||
24 | cli.log.error('Unknown error attempting to load {fg_cyan}%s{fg_reset}:\n\t{fg_red}%s', json_file, e) | ||
25 | exit(1) | ||
23 | 26 | ||
24 | 27 | ||
25 | def load_jsonschema(schema_name): | 28 | def load_jsonschema(schema_name): |