diff --git a/lib/python/qmk/commands.py b/lib/python/qmk/commands.py index 93f008778a3e..009622712fc7 100644 --- a/lib/python/qmk/commands.py +++ b/lib/python/qmk/commands.py @@ -54,9 +54,7 @@ def parse_configurator_json(configurator_file): cli.log.error(f'Invalid JSON keymap: {configurator_file} : {e.message}') exit(1) - keyboard = None - if 'keyboard' in user_keymap: - keyboard = user_keymap['keyboard'] + keyboard = user_keymap.get('keyboard', None) aliases = keyboard_alias_definitions() while keyboard in aliases: