Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
flow3r firmware
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
toerb
flow3r firmware
Commits
9aea6e95
Commit
9aea6e95
authored
2 years ago
by
q3k
Browse files
Options
Downloads
Patches
Plain Diff
idf_ext.py: gracefully handle invalid generation
parent
3b2a2157
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
idf_ext.py
+2
-2
2 additions, 2 deletions
idf_ext.py
with
2 additions
and
2 deletions
idf_ext.py
+
2
−
2
View file @
9aea6e95
...
...
@@ -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
.
value
s
():
for
_
,
names
in
GENERATIONS
.
item
s
():
supported
+=
names
s
ort
(
supported
)
s
upported
=
sorted
(
supported
)
raise
Exception
(
f
'
Invalid generation: want one of
{
"
,
"
.
join
(
supported
)
}
'
)
sdkconfig_name
=
'
sdkconfig.
'
+
name
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment