fix: allow empty secrets section
secrets can also be defined per domain, no need for a global section
This commit is contained in:
parent
62e01cbcbf
commit
6cd2a401e8
1 changed files with 2 additions and 2 deletions
|
@ -86,8 +86,8 @@ T = TypeVar('T')
|
||||||
|
|
||||||
def config_parse_dict(raw_conf: dict[str, Any], key: str, parse_item: Callable[[Any], T]) -> dict[str, T]:
|
def config_parse_dict(raw_conf: dict[str, Any], key: str, parse_item: Callable[[Any], T]) -> dict[str, T]:
|
||||||
if key not in raw_conf:
|
if key not in raw_conf:
|
||||||
log.error(f'missing "{key}" in config')
|
log.warning(f'missing "{key}" in config')
|
||||||
sys.exit(1)
|
return {}
|
||||||
|
|
||||||
result: dict[str, T] = {}
|
result: dict[str, T] = {}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue