From 5c32fc3e173dadaf8968b5d20c229e06bcf64d04 Mon Sep 17 00:00:00 2001 From: James Vega Date: Tue, 17 Aug 2004 01:12:51 +0000 Subject: [PATCH] I guess not all items have titles --- plugins/RSS.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/RSS.py b/plugins/RSS.py index dbfb8c57e..af7fb6734 100644 --- a/plugins/RSS.py +++ b/plugins/RSS.py @@ -226,7 +226,8 @@ class RSS(callbacks.Privmsg): self.releaseLock(url) def getHeadlines(self, feed): - return [utils.htmlToText(d['title'].strip()) for d in feed['items']] + return [utils.htmlToText(d['title'].strip()) for d in feed['items'] if + 'title' in d] def _validFeedName(self, name): if not registry.isValidRegistryName(name):