File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -1354,10 +1354,13 @@ def get_features(self):
13541354 self .cumulative_overrides ['features' ]\
13551355 .update_target (self .target )
13561356
1357- for feature in self .target .features :
1357+ # Features that don't appear in ALLOWED_FEATURES should be removed
1358+ # with a warning so that they don't do anything unexpected.
1359+ # Iterate over a copy of the set to remove them safely.
1360+ for feature in list (self .target .features ):
13581361 if feature not in ALLOWED_FEATURES :
1359- raise ConfigException (
1360- "Feature '%s' is not a supported features" % feature )
1362+ print ( "[WARNING] Feature '%s' is not a supported feature" % feature )
1363+ self . target . features . remove ( feature )
13611364
13621365 return self .target .features
13631366
You can’t perform that action at this time.
0 commit comments