From 762afb76e972787ab6b547f69a629b8bfb5f7611 Mon Sep 17 00:00:00 2001 From: Daniel Schadt Date: Tue, 6 Dec 2022 20:26:07 +0100 Subject: actually capture email.smtp_url in the config --- fietsboek/config.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fietsboek/config.py b/fietsboek/config.py index d2efe77..c85fd8e 100644 --- a/fietsboek/config.py +++ b/fietsboek/config.py @@ -189,6 +189,7 @@ class Config(BaseModel): """ if value == "": raise ValueError("You need to edit the default session key!") + return value @validator("email_smtp_url") def _known_smtp_url(cls, value): @@ -196,6 +197,7 @@ class Config(BaseModel): parsed = urllib.parse.urlparse(value) if parsed.scheme not in {'debug', 'smtp', 'smtp+ssl', 'smtp+starttls'}: raise ValueError(f"Unknown mailing scheme {parsed.scheme}".strip()) + return value def parse(config): -- cgit v1.2.3