Skip to content

Commit

Permalink
Merge pull request #74 from TeskaLabs/Enhancement/Chnage-Error
Browse files Browse the repository at this point in the history
Change SMTP error
  • Loading branch information
mithunbharadwaj authored May 16, 2024
2 parents d53555a + 6d770aa commit 0acc3de
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,10 @@

- Update Wrapper to kafkahandler

#### 16.05.2024

- Change Error


### Bugfix

Expand Down
4 changes: 2 additions & 2 deletions asabiris/output/smtp/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ async def send(
raise ASABIrisError(
ErrorCode.SMTP_CONNECTION_ERROR,
tech_message="SMTP connection failed: {}.".format(str(e)),
error_i18n_key="Could not connect to SMTP for host '{{host}}'.",
error_i18n_key="Could not connect to SMTP host '{{host}}'.",
error_dict={
"host": self.Host,
}
Expand Down Expand Up @@ -177,7 +177,7 @@ async def send(
raise ASABIrisError(
ErrorCode.SMTP_SERVER_DISCONNECTED,
tech_message="SMTP server disconnected: {}.".format(str(e)),
error_i18n_key="The SMTP server for '{{host}}' disconnected unexpectedly.",
error_i18n_key="The SMTP server '{{host}}' disconnected unexpectedly.",
error_dict={
"host": self.Host
}
Expand Down

0 comments on commit 0acc3de

Please sign in to comment.