config: remove accidental scheme validation circumvention, improve errors, warn on config loading failure in main()
This will fail on values of the wrong type, but still warn about and allow unknown keys.
This commit is contained in:
parent
7d96d05165
commit
11125e525f
3 changed files with 9 additions and 7 deletions
|
@ -135,7 +135,7 @@ class Config(DataClass):
|
|||
raise Exception(f'values contained unknown keys: {list(values.keys())}')
|
||||
_vals |= values
|
||||
|
||||
return Config(**_vals, validate=validate)
|
||||
return Config(_vals, validate=validate)
|
||||
|
||||
|
||||
@munchclass()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue