aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r/views.py
diff options
context:
space:
mode:
authorCédric Bonhomme <kimble.mandel@gmail.com>2014-02-10 07:52:50 +0100
committerCédric Bonhomme <kimble.mandel@gmail.com>2014-02-10 07:52:50 +0100
commitc336c6d45009deedae318cea9fbd82f7b530ccec (patch)
tree44f1934cb4f7fa3a52c1d5051a60a88a60e74470 /pyaggr3g470r/views.py
parentCatch error if not articles for a feed (when detecting inactive feeds). (diff)
downloadnewspipe-c336c6d45009deedae318cea9fbd82f7b530ccec.tar.gz
newspipe-c336c6d45009deedae318cea9fbd82f7b530ccec.tar.bz2
newspipe-c336c6d45009deedae318cea9fbd82f7b530ccec.zip
Minor bug fixes.
Diffstat (limited to 'pyaggr3g470r/views.py')
-rw-r--r--pyaggr3g470r/views.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pyaggr3g470r/views.py b/pyaggr3g470r/views.py
index 1118c223..65e2459f 100644
--- a/pyaggr3g470r/views.py
+++ b/pyaggr3g470r/views.py
@@ -147,6 +147,8 @@ def feed(feed_id=None):
word_size = 6
nb_articles = models.Article.objects().count()
user = models.User.objects(email=g.user.email, feeds__oid=feed_id).first()
+ if user == None:
+ return redirect(url_for('feeds'))
for feed in user.feeds:
if str(feed.oid) == feed_id:
articles = feed.articles
bgstack15