Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions airflow/providers/smtp/notifications/smtp.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@

class SmtpNotifier(BaseNotifier):
"""
SMTP Notifier
SMTP Notifier.

:param smtp_conn_id: The :ref:`smtp connection id <howto/connection:smtp>`
that contains the information used to authenticate the client.
Expand Down Expand Up @@ -82,11 +82,11 @@ def __init__(

@cached_property
def hook(self) -> SmtpHook:
"""Smtp Events Hook"""
"""Smtp Events Hook."""
return SmtpHook(smtp_conn_id=self.smtp_conn_id)

def notify(self, context):
"""Send a email via smtp server"""
"""Send a email via smtp server."""
with self.hook as smtp:
smtp.send_email_smtp(
smtp_conn_id=self.smtp_conn_id,
Expand Down