make_dict with mandatory option

This commit is contained in:
Emmanuel Garette 2018-12-07 23:30:45 +01:00
parent 5bb0c49949
commit 81490b75d9

View File

@ -575,13 +575,17 @@ class SubConfig(object):
withvalue,
fullpath,
pathsvalues)
except PropertiesOptionError:
except PropertiesOptionError as err:
if err.proptype == ['mandatory']:
raise err
pass
else:
try:
ret = self.getattr(name,
option_bag)
except PropertiesOptionError:
except PropertiesOptionError as err:
if err.proptype == ['mandatory']:
raise err
return
if flatten:
name_ = option.impl_getname()