Loading src/common/mail.py +2 −1 Original line number Diff line number Diff line Loading @@ -50,7 +50,8 @@ def send_email(subject, text, files=None): else: logger.error(f'Failed to attach file {f}. {f} is not a file.') else: logger.error(f'Failed to attach files {files}') logger.error(f'Failed to attach files "{files}". Please ensure that ' '"files" is passed as type "list"') logger.info(f'Sending email to {to_address} from {from_address}') try: with smtplib.SMTP(smtp_address, smtp_port) as server: Loading Loading
src/common/mail.py +2 −1 Original line number Diff line number Diff line Loading @@ -50,7 +50,8 @@ def send_email(subject, text, files=None): else: logger.error(f'Failed to attach file {f}. {f} is not a file.') else: logger.error(f'Failed to attach files {files}') logger.error(f'Failed to attach files "{files}". Please ensure that ' '"files" is passed as type "list"') logger.info(f'Sending email to {to_address} from {from_address}') try: with smtplib.SMTP(smtp_address, smtp_port) as server: Loading