Catch an exception that wasn't being caught.

This commit is contained in:
Jeremy Fincher 2004-12-18 20:28:52 +00:00
parent bb4890c067
commit 15f47f5ea9
1 changed files with 5 additions and 1 deletions

View File

@ -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.