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):
1354
1354
self .cumulative_overrides ['features' ]\
1355
1355
.update_target (self .target )
1356
1356
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 ):
1358
1361
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 )
1361
1364
1362
1365
return self .target .features
1363
1366
You can’t perform that action at this time.
0 commit comments