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