RSS: fix bug failing to define a variable under some conditions before referencing it.

This commit is contained in:
Daniel Folkinshteyn 2011-08-15 11:13:54 -04:00
parent a345262846
commit c270111c6b

View File

@ -199,6 +199,8 @@ class RSS(callbacks.Plugin):
for channel in channels:
if len(oldheadlines) == 0:
channelnewheadlines = newheadlines[:self.registryValue('initialAnnounceHeadlines', channel)]
else:
channelnewheadlines = newheadlines[:]
whitelist = self.registryValue('keywordWhitelist', channel)
blacklist = self.registryValue('keywordBlacklist', channel)
if len(whitelist) != 0: