File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -131,9 +131,9 @@ def get_settings(board):
131
131
132
132
# See if it is port specific
133
133
port_matches = port_pattern .search (p )
134
+ port = port_matches .group (1 ) if port_matches else None
134
135
module_matches = module_pattern .search (p )
135
- if port_matches and not module_matches :
136
- port = port_matches .group (1 )
136
+ if port and not module_matches :
137
137
if port != "unix" :
138
138
boards_to_build .update (port_to_boards [port ])
139
139
continue
@@ -149,8 +149,7 @@ def get_settings(board):
149
149
# As a (nearly) last resort, for some certain files, we compute the settings from the
150
150
# makefile for each board and determine whether to build them that way.
151
151
if p .startswith ("frozen" ) or p .startswith ("supervisor" ) or module_matches :
152
- if port_matches :
153
- port = port_matches .group (1 )
152
+ if port :
154
153
board_ids = port_to_boards [port ]
155
154
else :
156
155
board_ids = all_board_ids
You can’t perform that action at this time.
0 commit comments