Skip to content

Commit

Permalink
Fix g_led_config parse warning (#24769)
Browse files Browse the repository at this point in the history
  • Loading branch information
zvecr authored Jan 1, 2025
1 parent fe2200f commit 53680fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/python/qmk/info.py
Original file line number Diff line number Diff line change
Expand Up @@ -789,8 +789,8 @@ def _extract_led_config(info_data, keyboard):
info_data[feature]['layout'] = ret
except Exception as e:
_log_warning(info_data, f'led_config: {file.name}: {e}')
else:
_log_warning(info_data, 'led_config: matrix size required to parse g_led_config')
else:
_log_warning(info_data, 'led_config: matrix size required to parse g_led_config')

if info_data[feature].get('layout', None) and not info_data[feature].get('led_count', None):
info_data[feature]['led_count'] = len(info_data[feature]['layout'])
Expand Down

0 comments on commit 53680fa

Please sign in to comment.