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:
InsanePrawn 2022-11-09 16:28:09 +01:00
parent 7d96d05165
commit 11125e525f
3 changed files with 9 additions and 7 deletions

View file

@ -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()