mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-20 01:19:26 +01: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:
|
||||
announced_feeds |= self.registryValue('announce', channel)
|
||||
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):
|
||||
with feed.lock:
|
||||
|
Loading…
Reference in New Issue
Block a user