diff options
-rw-r--r-- | source/mongodb.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/mongodb.py b/source/mongodb.py index a8d81aef..358b2746 100644 --- a/source/mongodb.py +++ b/source/mongodb.py @@ -76,7 +76,10 @@ class Articles(object): """ Return information about a feed. """ - return next(self.db[str(feed_id)].find()) + try: + return next(self.db[str(feed_id)].find()) + except: + return None def get_all_feeds(self, condition=None): """ |