From c270111c6b4ac2a5efa7dc96673ab3b454d71c0a Mon Sep 17 00:00:00 2001 From: Daniel Folkinshteyn Date: Mon, 15 Aug 2011 11:13:54 -0400 Subject: [PATCH] RSS: fix bug failing to define a variable under some conditions before referencing it. --- plugins/RSS/plugin.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/RSS/plugin.py b/plugins/RSS/plugin.py index 6cb73d438..97a0aa1ed 100644 --- a/plugins/RSS/plugin.py +++ b/plugins/RSS/plugin.py @@ -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: