fix: allow empty secrets section

secrets can also be defined per domain, no need for a global section
This commit is contained in:
ptrcnull 2024-10-04 12:46:07 +02:00
parent 62e01cbcbf
commit 6cd2a401e8

View file

@ -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] = {}