From 15f47f5ea9ca71748f31811e0d523c89fae9465d Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Sat, 18 Dec 2004 20:28:52 +0000 Subject: [PATCH] Catch an exception that wasn't being caught. --- plugins/RSS.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins/RSS.py b/plugins/RSS.py index 11b24cfcc..7cd5a6b37 100644 --- a/plugins/RSS.py +++ b/plugins/RSS.py @@ -110,7 +110,11 @@ class RSS(callbacks.Privmsg): self.gettingLockLock = threading.Lock() for name in self.registryValue('feeds'): self._registerFeed(name) - url = self.registryValue('feeds.%s' % name) + try: + url = self.registryValue('feeds.%s' % name) + except registry.NonExistentRegistryEntry: + self.log.warning('%s is not a registered feed, removing.',name) + continue self.makeFeedCommand(name, url) self.getFeed(url) # So announced feeds don't announce on startup.