1
0
Fork 0

Prevent qmk migrate processing unparsed info.json values (#22374)

This commit is contained in:
Joel Challis 2024-01-09 09:59:36 +00:00 committed by GitHub
parent 34aa533246
commit 455cd65e80
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View file

@ -501,6 +501,9 @@ def _config_to_json(key_type, config_value):
"""Convert config value using spec
"""
if key_type.startswith('array'):
if key_type.count('.') > 1:
raise Exception(f"Conversion of {key_type} not possible")
if '.' in key_type:
key_type, array_type = key_type.split('.', 1)
else: