diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2014-04-09 19:46:10 +0200 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2014-04-09 19:46:10 +0200 |
commit | 3d028d6dc563af46f7cf8ead5036046b675a7e22 (patch) | |
tree | 05011940152dc34267bc2c7d409fe0bc18967049 /pyaggr3g470r/feedgetter.py | |
parent | Fixed bug for deployment on Herolu (1). (diff) | |
download | newspipe-3d028d6dc563af46f7cf8ead5036046b675a7e22.tar.gz newspipe-3d028d6dc563af46f7cf8ead5036046b675a7e22.tar.bz2 newspipe-3d028d6dc563af46f7cf8ead5036046b675a7e22.zip |
Fixed bug for deployment on Herolu (2).
Diffstat (limited to 'pyaggr3g470r/feedgetter.py')
-rw-r--r-- | pyaggr3g470r/feedgetter.py | 7 |
1 files changed, 5 insertions, 2 deletions
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 |