Skip to content

Commit

Permalink
Fix smtp.sendmail() call in email_night_log()
Browse files Browse the repository at this point in the history
  • Loading branch information
albireox committed Oct 26, 2024
1 parent cb4691a commit 0b69a5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lvmapi/tools/logs.py
Original file line number Diff line number Diff line change
Expand Up @@ -623,7 +623,7 @@ async def email_night_log(
msg.attach(html)

with smtplib.SMTP(host=email_host, port=email_port) as smtp:
smtp.sendmail(from_address, ", ".join(recipients), msg.as_string())
smtp.sendmail(from_address, recipients, msg.as_string())

if update_database:
uri = config["database.uri"]
Expand Down

0 comments on commit 0b69a5c

Please sign in to comment.