non mandatory error
This commit is contained in:
parent
99df5bbd79
commit
c6ad86bd81
|
@ -175,9 +175,7 @@ class Config(object):
|
||||||
raise MethodCallError("this method root_mandatory machin() shall not be"
|
raise MethodCallError("this method root_mandatory machin() shall not be"
|
||||||
"used with non-root Confit() object")
|
"used with non-root Confit() object")
|
||||||
rootconfig = self._cfgimpl_get_toplevel()
|
rootconfig = self._cfgimpl_get_toplevel()
|
||||||
if 'mandatory' in rootconfig._cfgimpl_properties:
|
rootconfig._cfgimpl_mandatory = False
|
||||||
rootconfig._cfgimpl_properties.remove('mandatory')
|
|
||||||
|
|
||||||
|
|
||||||
# ____________________________________________________________
|
# ____________________________________________________________
|
||||||
def __setattr__(self, name, value):
|
def __setattr__(self, name, value):
|
||||||
|
|
Loading…
Reference in New Issue