Skip to content

Commit

Permalink
Merge pull request #696 from scidsg/lenient-port-parsing
Browse files Browse the repository at this point in the history
avoid parsing empty strings as ints
  • Loading branch information
glenn-sorrentino authored Oct 16, 2024
2 parents 66662a2 + 8afabd0 commit 71140c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hushline/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def _load_smtp(env: Mapping[str, str]) -> Mapping[str, Any]:
if val := env.get(key):
data[key] = val

data["SMTP_PORT"] = if_not_none(env.get("SMTP_PORT"), int)
data["SMTP_PORT"] = if_not_none(env.get("SMTP_PORT"), int, allow_falsey=False)
data["SMTP_ENCRYPTION"] = env.get("SMTP_ENCRYPTION", "StartTLS")
data["SMTP_FORWARDING_MESSAGE_HTML"] = if_not_none(
env.get("SMTP_FORWARDING_MESSAGE_HTML"), Markup, allow_falsey=False
Expand Down

0 comments on commit 71140c3

Please sign in to comment.