aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Schadt <kingdread@gmx.de>2022-12-06 20:26:07 +0100
committerDaniel Schadt <kingdread@gmx.de>2022-12-06 20:26:07 +0100
commit762afb76e972787ab6b547f69a629b8bfb5f7611 (patch)
treed591905bf455f5120d3b65cf0bc41f1b87e99483
parent9692c6155b7e4302c9778cb8ff2f917758aefe5e (diff)
downloadfietsboek-762afb76e972787ab6b547f69a629b8bfb5f7611.tar.gz
fietsboek-762afb76e972787ab6b547f69a629b8bfb5f7611.tar.bz2
fietsboek-762afb76e972787ab6b547f69a629b8bfb5f7611.zip
actually capture email.smtp_url in the config
-rw-r--r--fietsboek/config.py2
1 files changed, 2 insertions, 0 deletions
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 == "<EDIT THIS>":
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):