aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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):