mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-02 17:29:22 +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()
|
self.lastRequest[url] = time.time()
|
||||||
finally:
|
finally:
|
||||||
self.currentlyDownloading.discard(url)
|
self.currentlyDownloading.discard(url)
|
||||||
|
try:
|
||||||
return self.cachedFeeds[url]
|
return self.cachedFeeds[url]
|
||||||
|
except KeyError:
|
||||||
|
self.lastRequest[url] = 0
|
||||||
|
return {'items': {'title': 'Unable to download feed.'}}
|
||||||
|
|
||||||
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']]
|
||||||
|
Loading…
Reference in New Issue
Block a user