Skip to content
Snippets Groups Projects
Commit 9aea6e95 authored by q3k's avatar q3k
Browse files

idf_ext.py: gracefully handle invalid generation

parent 3b2a2157
No related branches found
No related tags found
No related merge requests found
......@@ -40,9 +40,9 @@ def action_extensions(base_actions, project_path=os.getcwd()):
if name is None:
supported = []
supported += GENERATIONS.keys()
for _, names in GENERATIONS.values():
for _, names in GENERATIONS.items():
supported += names
sort(supported)
supported = sorted(supported)
raise Exception(f'Invalid generation: want one of {", ".join(supported)}')
sdkconfig_name = 'sdkconfig.' + name
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment