Skip to content

Commit 972f2c9

Browse files
committed
Fixed email app again
1 parent baaf301 commit 972f2c9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

email/1.3.0/src/app.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def send_email_smtp(self, smtp_host, recipient, subject, body, smtp_port, attach
114114
msg["To"] = recipient
115115
msg["Subject"] = subject
116116

117-
if cc_emails != None and len(cc_emails) > 0:
117+
if cc_emails:
118118
msg["Cc"] = cc_emails
119119

120120
self.logger.info("Pre mime check")
@@ -156,7 +156,7 @@ def send_email_smtp(self, smtp_host, recipient, subject, body, smtp_port, attach
156156
except Exception as e:
157157
self.logger.info(f"Error in attachment parsing for email: {e}")
158158

159-
self.logger.info("Pre send msg")
159+
self.logger.info(f"Pre send msg: {msg}")
160160
try:
161161
s.send_message(msg)
162162
except smtplib.SMTPDataError as e:

0 commit comments

Comments
 (0)