add validation upon mandatory options function
This commit is contained in:
parent
5730a97728
commit
f5975777b9
|
@ -536,5 +536,11 @@ def make_dict(config, flatten=False):
|
|||
pass # this just a hidden or disabled option
|
||||
options = dict(pathsvalues)
|
||||
return options
|
||||
# ____________________________________________________________
|
||||
|
||||
def mandatory_warnings(config):
|
||||
for path in config.getpaths():
|
||||
try:
|
||||
value = getattr(config, path)
|
||||
except MandatoryError:
|
||||
yield path
|
||||
|
||||
|
|
Loading…
Reference in New Issue