don't raise if check_disabled is True
This commit is contained in:
parent
ec88d817ae
commit
e5de0234c2
|
@ -44,9 +44,11 @@ def carry_out_calculation(name, config, callback, callback_params):
|
|||
for key, values in callback_params.items():
|
||||
for value in values:
|
||||
if type(value) == tuple:
|
||||
if config is None:
|
||||
raise ConfigError(_('no config specified but needed'))
|
||||
path, check_disabled = value
|
||||
if config is None:
|
||||
if check_disabled:
|
||||
continue
|
||||
raise ConfigError(_('no config specified but needed'))
|
||||
try:
|
||||
opt_value = config._getattr(path, force_permissive=True)
|
||||
opt = config.unwrap_from_path(path)
|
||||
|
|
Loading…
Reference in New Issue