Skip to content

Commit

Permalink
Include missed error classes
Browse files Browse the repository at this point in the history
  • Loading branch information
TheByronHimes committed Jan 16, 2024
1 parent 76e7e6a commit 7f61320
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/ns/core/notifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,13 @@ async def send_notification(self, *, notification: event_schemas.Notification):
try:
message = self._construct_email(notification=notification)
self._smtp_client.send_email_message(message)
except (self.BadTemplateFormat, SmtpClientPort.GeneralSmtpException) as err:
except (
self.BadTemplateFormat,
self.VariableNotSuppliedError,
SmtpClientPort.GeneralSmtpException,
SmtpClientPort.FailedLoginError,
SmtpClientPort.ConnectionError,
) as err:
log.fatal(msg=str(err))
raise

Expand Down

0 comments on commit 7f61320

Please sign in to comment.