aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pyaggr3g470r/feedgetter.py7
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
bgstack15