Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
IonesioJunior committed Sep 17, 2024
1 parent 033c54a commit 0bfafa6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/syft/src/syft/service/notifier/notifier_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ def init_notifier(
email_sender: str | None = None,
smtp_port: int | None = None,
smtp_host: str | None = None,
) -> SyftSuccess:
) -> SyftSuccess | None:
"""Initialize Notifier settings for a Server.
If settings already exist, it will use the existing one.
If not, it will create a new one.
Expand All @@ -258,13 +258,13 @@ def init_notifier(
logger.error(
"SMTP server and port are required to initialize the notifier."
)
return
return None

if not email_username and not email_password:
logger.error(
"Email username and password are required to initialize the notifier."
)
return
return None

try:
# Create a new NotifierStash since its a static method.
Expand Down

0 comments on commit 0bfafa6

Please sign in to comment.