diff options
author | Cédric Bonhomme <kimble.mandel@gmail.com> | 2013-04-01 23:47:01 +0200 |
---|---|---|
committer | Cédric Bonhomme <kimble.mandel@gmail.com> | 2013-04-01 23:47:01 +0200 |
commit | 9f84c3947adf66bf1d0f8fad941ff717ab805585 (patch) | |
tree | 4a9d3739972f1ac30a7caba033251abe0bbabc21 /source/mongodb.py | |
parent | If feed id is not valid, return directly the error page. (diff) | |
download | newspipe-9f84c3947adf66bf1d0f8fad941ff717ab805585.tar.gz newspipe-9f84c3947adf66bf1d0f8fad941ff717ab805585.tar.bz2 newspipe-9f84c3947adf66bf1d0f8fad941ff717ab805585.zip |
Test if ids of the feed/articles exists.
Diffstat (limited to 'source/mongodb.py')
-rw-r--r-- | source/mongodb.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/mongodb.py b/source/mongodb.py index 38081780..f0aa730a 100644 --- a/source/mongodb.py +++ b/source/mongodb.py @@ -134,7 +134,7 @@ class Articles(object): try: return next(collection.find({"article_id":article_id})) except: - return False + return [] def get_favorites(self, feed_id=None): """ |