mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-23 10:34:19 +01:00
I guess not all items have titles
This commit is contained in:
parent
3d03d6fd9f
commit
5c32fc3e17
@ -226,7 +226,8 @@ class RSS(callbacks.Privmsg):
|
|||||||
self.releaseLock(url)
|
self.releaseLock(url)
|
||||||
|
|
||||||
def getHeadlines(self, feed):
|
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):
|
def _validFeedName(self, name):
|
||||||
if not registry.isValidRegistryName(name):
|
if not registry.isValidRegistryName(name):
|
||||||
|
Loading…
Reference in New Issue
Block a user