From 3d028d6dc563af46f7cf8ead5036046b675a7e22 Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Wed, 9 Apr 2014 19:46:10 +0200 Subject: Fixed bug for deployment on Herolu (2). --- pyaggr3g470r/feedgetter.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'pyaggr3g470r') diff --git a/pyaggr3g470r/feedgetter.py b/pyaggr3g470r/feedgetter.py index 91c3e2f0..96917fcf 100644 --- a/pyaggr3g470r/feedgetter.py +++ b/pyaggr3g470r/feedgetter.py @@ -44,8 +44,11 @@ import conf #import search import utils -from flask.ext.mail import Message -from pyaggr3g470r import app, db, mail +if not conf.ON_HEROKU: + from flask.ext.mail import Message + from pyaggr3g470r import mail + +from pyaggr3g470r import app, db from pyaggr3g470r.models import User, Feed, Article import log -- cgit