Compare commits

..

No commits in common. "e17d03b376f4c7f1cc33016a911bb21a6b4deeaa" and "4d0538479a8f05afc3b60056f33e4f49dcc26c1b" have entirely different histories.

1 changed files with 9 additions and 10 deletions

View File

@ -53,7 +53,6 @@ def sendMail(msg_body :str):
message['Subject'] = "OwlBoard - dbmanager Logs" message['Subject'] = "OwlBoard - dbmanager Logs"
filename = "cif_data" filename = "cif_data"
message.attach(MIMEText(msg_body, "plain")) message.attach(MIMEText(msg_body, "plain"))
if os.path.exists(filename):
with open(filename, "rb") as attachment: with open(filename, "rb") as attachment:
part = MIMEBase("application", "octet-stream") part = MIMEBase("application", "octet-stream")
part.set_payload(attachment.read()) part.set_payload(attachment.read())