Merge remote-tracking branch 'origin/master' into develop
Conflicts: keyboards/kbdfans/kbd67/mkiirgb/mkiirgb.c
This commit is contained in:
commit
12681bacc4
35 changed files with 3370 additions and 18 deletions
|
@ -74,7 +74,7 @@ def info_json(keyboard):
|
|||
except jsonschema.ValidationError as e:
|
||||
json_path = '.'.join([str(p) for p in e.absolute_path])
|
||||
cli.log.error('Invalid API data: %s: %s: %s', keyboard, json_path, e.message)
|
||||
exit()
|
||||
exit(1)
|
||||
|
||||
# Make sure we have at least one layout
|
||||
if not info_data.get('layouts'):
|
||||
|
|
|
@ -17,9 +17,12 @@ def json_load(json_file):
|
|||
try:
|
||||
return hjson.load(json_file.open(encoding='utf-8'))
|
||||
|
||||
except json.decoder.JSONDecodeError as e:
|
||||
except (json.decoder.JSONDecodeError, hjson.HjsonDecodeError) as e:
|
||||
cli.log.error('Invalid JSON encountered attempting to load {fg_cyan}%s{fg_reset}:\n\t{fg_red}%s', json_file, e)
|
||||
exit(1)
|
||||
except Exception as e:
|
||||
cli.log.error('Unknown error attempting to load {fg_cyan}%s{fg_reset}:\n\t{fg_red}%s', json_file, e)
|
||||
exit(1)
|
||||
|
||||
|
||||
def load_jsonschema(schema_name):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue