Nicer error message.

This commit is contained in:
Jeremy Fincher 2003-12-09 20:46:40 +00:00
parent 3ef5f546a1
commit 8df0b3888f

View File

@ -127,7 +127,7 @@ class RSS(callbacks.Privmsg):
headlines = [utils.htmlToText(d['title'].strip()) headlines = [utils.htmlToText(d['title'].strip())
for d in feed['items']] for d in feed['items']]
if not headlines: if not headlines:
irc.error(msg, 'Error grabbing RSS feed') irc.error(msg, 'Couldn\'t get RSS feed')
return return
headlines = imap(utils.htmlToText, headlines) headlines = imap(utils.htmlToText, headlines)
irc.reply(msg, ' :: '.join(headlines)) irc.reply(msg, ' :: '.join(headlines))