aboutsummaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorCédric Bonhomme <kimble.mandel@gmail.com>2013-04-01 23:39:29 +0200
committerCédric Bonhomme <kimble.mandel@gmail.com>2013-04-01 23:39:29 +0200
commiteef12661ad624f0f2c5c5501862620fe761f5dde (patch)
treedae89918ac47be993aef2b0e1cd4976d7f674750 /source
parentThe original epoch time (time.gmtime(0)) is now used as last_post_date when t... (diff)
downloadnewspipe-eef12661ad624f0f2c5c5501862620fe761f5dde.tar.gz
newspipe-eef12661ad624f0f2c5c5501862620fe761f5dde.tar.bz2
newspipe-eef12661ad624f0f2c5c5501862620fe761f5dde.zip
Test if the id of the feed is valid.
Diffstat (limited to 'source')
-rwxr-xr-xsource/pyAggr3g470r.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/pyAggr3g470r.py b/source/pyAggr3g470r.py
index 116689c9..297c05a1 100755
--- a/source/pyAggr3g470r.py
+++ b/source/pyAggr3g470r.py
@@ -277,6 +277,8 @@ class pyAggr3g470r(object):
nb_favorites = self.mongo.nb_favorites(feed_id)
except KeyError:
return self.error("<p>This feed do not exists.</p>")
+ if feed == None:
+ return self.error("<p>This feed do not exists.</p>")
if articles.count() != 0:
today = datetime.datetime.now()
bgstack15