Commit 455489c9 authored by Hamaker, Alec's avatar Hamaker, Alec
Browse files

Updated files attachment error message to include list distinction.

parent b094e962
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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: