Skip to content
This repository has been archived by the owner on Jan 26, 2025. It is now read-only.

Commit

Permalink
fix: filter out empty when reading .env
Browse files Browse the repository at this point in the history
  • Loading branch information
futrime committed Nov 10, 2024
1 parent bf942de commit 5041239
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,10 @@ def load_env() -> Env:
imap_host=os.getenv("IMAP_HOST", ""),
smtp_host=os.getenv("SMTP_HOST", ""),
reviewer_email_addresses=list(
map(str.strip, os.getenv("REVIEWER_EMAIL_ADDRESSES", "").splitlines())
filter(
None,
map(str.strip, os.getenv("REVIEWER_EMAIL_ADDRESSES", "").splitlines()),
)
),
min_reviewers=int(os.getenv("MIN_REVIEWERS", "1")),
is_periodical=os.getenv("IS_PERIODICAL", "false").lower() == "true",
Expand Down

0 comments on commit 5041239

Please sign in to comment.