Better launch, cleaner shutdown (wip)
This commit is contained in:
@@ -37,6 +37,6 @@ def send(article_model):
|
||||
smtp.sendmail(config["sender"], config["recipient"], mail.as_string())
|
||||
smtp.quit()
|
||||
logger.info("Mail successfully sent.")
|
||||
except Exception as e:
|
||||
except smtplib.SMTPException as e:
|
||||
logger.error("Could not send mail for article {}".format(article_model))
|
||||
logger.info(e)
|
||||
Reference in New Issue
Block a user