From 9f84c3947adf66bf1d0f8fad941ff717ab805585 Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Mon, 1 Apr 2013 23:47:01 +0200 Subject: Test if ids of the feed/articles exists. --- source/mongodb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/mongodb.py') 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): """ -- cgit