make_dict with mandatory option
This commit is contained in:
parent
5bb0c49949
commit
81490b75d9
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user