diff options
-rw-r--r-- | fietsboek/config.py | 4 | ||||
-rw-r--r-- | fietsboek/email.py | 1 |
2 files changed, 2 insertions, 3 deletions
diff --git a/fietsboek/config.py b/fietsboek/config.py index e90deda..d2efe77 100644 --- a/fietsboek/config.py +++ b/fietsboek/config.py @@ -153,7 +153,7 @@ class Config(BaseModel): email_username: str = Field("", alias="email.username") """SMTP username (optional).""" - email_password: SecretStr = Field("", alias="email.password") + email_password: SecretStr = Field(SecretStr(""), alias="email.password") """SMTP password (optional).""" pages: PyramidList = Field([], alias="fietsboek.pages") @@ -166,7 +166,7 @@ class Config(BaseModel): By default, that's all of them. """ - thunderforest_key: SecretStr = Field("", alias="thunderforest.api_key") + thunderforest_key: SecretStr = Field(SecretStr(""), alias="thunderforest.api_key") """API key for the Thunderforest integration.""" thunderforest_maps: PyramidList = Field([], alias="thunderforest.maps") diff --git a/fietsboek/email.py b/fietsboek/email.py index 497debe..1ebb740 100644 --- a/fietsboek/email.py +++ b/fietsboek/email.py @@ -1,6 +1,5 @@ """Utility functions for email sending.""" import logging -import re import smtplib import sys |