Merge pull request #10550 from bjwtaylor/restore-failure

Re-instate failure when disabling non-existing option
This commit is contained in:
Gilles Peskine
2026-01-02 20:14:58 +00:00
committed by GitHub

View File

@@ -109,12 +109,6 @@ def set_config_option_value(conf, option, colors, value: Union[bool, str]):
value can be either True/False (set/unset config option), or a string,
which will make a symbol defined with a certain value."""
if not option_exists(conf, option):
if value is False:
log_line(
f'Warning, disabling {option} that does not exist in {conf.filename}',
color=colors.cyan
)
return True
log_line('Symbol {} was not found in {}'.format(option, conf.filename), color=colors.red)
return False