mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-30 14:59:34 +01:00
Handled bug #926443.
This commit is contained in:
parent
f8f1b4585f
commit
36f182dc60
@ -174,7 +174,11 @@ class RSS(callbacks.Privmsg):
|
||||
self.lastRequest[url] = time.time()
|
||||
finally:
|
||||
self.currentlyDownloading.discard(url)
|
||||
try:
|
||||
return self.cachedFeeds[url]
|
||||
except KeyError:
|
||||
self.lastRequest[url] = 0
|
||||
return {'items': {'title': 'Unable to download feed.'}}
|
||||
|
||||
def getHeadlines(self, feed):
|
||||
return [utils.htmlToText(d['title'].strip()) for d in feed['items']]
|
||||
|
Loading…
Reference in New Issue
Block a user