I guess not all items have titles

This commit is contained in:
James Vega 2004-08-17 01:12:51 +00:00
parent 3d03d6fd9f
commit 5c32fc3e17
1 changed files with 2 additions and 1 deletions

View File

@ -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):