mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-02 17:29:22 +01:00
Nicer error message.
This commit is contained in:
parent
3ef5f546a1
commit
8df0b3888f
@ -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))
|
||||||
|
Loading…
Reference in New Issue
Block a user