diff options
author | Cédric Bonhomme <kimble.mandel@gmail.com> | 2013-04-01 23:39:29 +0200 |
---|---|---|
committer | Cédric Bonhomme <kimble.mandel@gmail.com> | 2013-04-01 23:39:29 +0200 |
commit | eef12661ad624f0f2c5c5501862620fe761f5dde (patch) | |
tree | dae89918ac47be993aef2b0e1cd4976d7f674750 /source | |
parent | The original epoch time (time.gmtime(0)) is now used as last_post_date when t... (diff) | |
download | newspipe-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-x | source/pyAggr3g470r.py | 2 |
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() |