fix: don't require a secret for http handler

lol
This commit is contained in:
ptrcnull 2024-10-04 12:47:11 +02:00
parent 6cd2a401e8
commit 1bb823e63e

View file

@ -131,7 +131,7 @@ def read_config(path: str | None) -> Config:
# fill default secrets # fill default secrets
for domain in c.domains: for domain in c.domains:
info = c.domains[domain] info = c.domains[domain]
if info.secret is None: if info.secret is None and info.handler != "http":
if info.handler not in secrets: if info.handler not in secrets:
raise KeyError(f'"{info.handler}" not in secrets') raise KeyError(f'"{info.handler}" not in secrets')
info.secret = secrets[info.handler] info.secret = secrets[info.handler]