Skip to content

Commit

Permalink
Host / server
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathangreen committed Feb 8, 2024
1 parent ab18121 commit 550adc4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/service/email/email.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@


def emailer_factory(
server: str | None, port: int, username: str | None, password: str | None
host: str | None, port: int, username: str | None, password: str | None
) -> EmailSender:
if server is None:
if host is None:
raise CannotLoadConfiguration(

Check warning on line 14 in core/service/email/email.py

View check run for this annotation

Codecov / codecov/patch

core/service/email/email.py#L14

Added line #L14 was not covered by tests
"Mail server must be provided. Please set PALACE_MAIL_SERVER."
)

return EmailSender(

Check warning on line 18 in core/service/email/email.py

View check run for this annotation

Codecov / codecov/patch

core/service/email/email.py#L18

Added line #L18 was not covered by tests
host=server,
host=host,
port=port,
# Username and password are ignored here because the emailer library has them
# as required, but defaults them to None. So their types are not correct.
Expand Down

0 comments on commit 550adc4

Please sign in to comment.