mirror of
https://github.com/progval/Limnoria.git
synced 2025-04-26 13:01:06 -05:00
RSS: Display nice error if an announced feed does not exist.
This commit is contained in:
parent
9385487f54
commit
8efcc4a009
@ -273,7 +273,12 @@ class RSS(callbacks.Plugin):
|
|||||||
for channel in irc.state.channels:
|
for channel in irc.state.channels:
|
||||||
announced_feeds |= self.registryValue('announce', channel)
|
announced_feeds |= self.registryValue('announce', channel)
|
||||||
for name in announced_feeds:
|
for name in announced_feeds:
|
||||||
self.update_feed_if_needed(self.get_feed(name))
|
feed = self.get_feed(name)
|
||||||
|
if not feed:
|
||||||
|
self.log.warning('Feed %s is announced but does not exist.' %
|
||||||
|
name)
|
||||||
|
continue
|
||||||
|
self.update_feed_if_needed(feed)
|
||||||
|
|
||||||
def get_new_entries(self, feed):
|
def get_new_entries(self, feed):
|
||||||
with feed.lock:
|
with feed.lock:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user