From 6cd2a401e80b722463f3f7f00f461c0ed5e9ef40 Mon Sep 17 00:00:00 2001 From: ptrcnull Date: Fri, 4 Oct 2024 12:46:07 +0200 Subject: [PATCH] fix: allow empty secrets section secrets can also be defined per domain, no need for a global section --- nyacme/config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nyacme/config.py b/nyacme/config.py index a915c13..f251660 100644 --- a/nyacme/config.py +++ b/nyacme/config.py @@ -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]: if key not in raw_conf: - log.error(f'missing "{key}" in config') - sys.exit(1) + log.warning(f'missing "{key}" in config') + return {} result: dict[str, T] = {}