diff --git a/plugins/RSS.py b/plugins/RSS.py index cea832ac7..2c6e0ec4e 100644 --- a/plugins/RSS.py +++ b/plugins/RSS.py @@ -174,7 +174,11 @@ class RSS(callbacks.Privmsg): self.lastRequest[url] = time.time() finally: self.currentlyDownloading.discard(url) - return self.cachedFeeds[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']]