From 3878714b2f2ef4c9b78b0dc8071ff594696b072d Mon Sep 17 00:00:00 2001 From: Guillaume Horel Date: Sun, 23 Jul 2017 17:45:49 -0400 Subject: fix import --- famille.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'famille.py') diff --git a/famille.py b/famille.py index de910e3..4310b0c 100644 --- a/famille.py +++ b/famille.py @@ -13,7 +13,7 @@ from email import utils from bs4 import BeautifulSoup import locale from smartypants import smartypants, Attr -from email_helpers import GmailEmailMessage +from email_helpers import GmailMessage locale.setlocale(locale.LC_ALL, 'fr_FR.UTF-8') @@ -150,7 +150,7 @@ def add_news(): emails = query_db("SELECT email from users where notify=1") emails = [email["email"] for email in emails if email["email"]] if emails: - message = GmailEmailMessage() + message = GmailMessage() message['to'] = emails message['subject'] = request.form['title'] message['reply-to'] = "news.horel+{}@gmail.com".format(news_id) -- cgit v1.2.3-70-g09d2