mirror of
https://github.com/qmk/qmk_firmware.git
synced 2026-10-06 09:00:40 +08:00
Fix python syntax errors in except clauses (#26254)
Update API Data / api_data (push) Has been cancelled
Essential files modified / tag (push) Has been cancelled
CI Build Major Branch / Determine concurrency (push) Has been cancelled
CLI CI / test (push) Has been cancelled
Update develop after master merge / develop_update (push) Has been cancelled
Lint Format / lint (push) Has been cancelled
Regenerate Files / regen (push) Has been cancelled
Unit Tests / test (push) Has been cancelled
CI Build Major Branch / Compile keymap ${{ matrix.keymap }} (push) Has been cancelled
CI Build Major Branch / Consolidation (push) Has been cancelled
Update API Data / api_data (push) Has been cancelled
Essential files modified / tag (push) Has been cancelled
CI Build Major Branch / Determine concurrency (push) Has been cancelled
CLI CI / test (push) Has been cancelled
Update develop after master merge / develop_update (push) Has been cancelled
Lint Format / lint (push) Has been cancelled
Regenerate Files / regen (push) Has been cancelled
Unit Tests / test (push) Has been cancelled
CI Build Major Branch / Compile keymap ${{ matrix.keymap }} (push) Has been cancelled
CI Build Major Branch / Consolidation (push) Has been cancelled
* Update rules_mk.py fix syntax error * Update config_h.py second syntax error
This commit is contained in:
@@ -95,7 +95,7 @@ def generate_config_items(kb_info_json, config_h_lines):
|
||||
|
||||
try:
|
||||
config_value = kb_info_json[info_key]
|
||||
except KeyError, IndexError:
|
||||
except (KeyError, IndexError):
|
||||
continue
|
||||
|
||||
if key_type.startswith('array.array'):
|
||||
|
||||
@@ -31,7 +31,7 @@ def process_mapping_rule(kb_info_json, rules_key, info_dict):
|
||||
|
||||
try:
|
||||
rules_value = kb_info_json[info_key]
|
||||
except KeyError, IndexError:
|
||||
except (KeyError, IndexError):
|
||||
return None
|
||||
|
||||
if key_type in ['array', 'list']:
|
||||
|
||||
Reference in New Issue
Block a user