Skip to content

Commit

Permalink
Flake8 happiness.
Browse files Browse the repository at this point in the history
  • Loading branch information
ateska committed Nov 8, 2022
1 parent 674b1a0 commit ac8be5f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions asabiris/orchestration/sendmail.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ async def send_mail(
):
"""
It sends an email
:param email_to: The email address to send the email to
:param email_from: The email address to send the email from. If not provided, the default email
address will be used
Expand Down Expand Up @@ -100,7 +100,7 @@ async def send_mail(
email_to=email_to,
email_cc=email_cc,
email_bcc=email_bcc,
email_subject=email_subject,
email_subject=email_subject,
body=body_html,
attachments=atts
)
Expand Down
2 changes: 1 addition & 1 deletion asabiris/orchestration/webhandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ async def send_mail(self, request, *, json_data):

except SMTPDeliverError:
raise aiohttp.web.HTTPServiceUnavailable(text="SMTP error")

# More specific exception handling goes here so that the service provides nice output

return asab.web.rest.json_response(request, {"result": "OK"})
Expand Down
1 change: 0 additions & 1 deletion asabiris/output/smtp/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,4 +154,3 @@ async def send(
raise SMTPDeliverError("SMTP delivery failed")

L.log(asab.LOG_NOTICE, "Email sent", struct_data={'result': result[1], "host": self.Host})

0 comments on commit ac8be5f

Please sign in to comment.