mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05:09:23 +01:00
RSS: fix bug failing to define a variable under some conditions before referencing it.
This commit is contained in:
parent
a345262846
commit
c270111c6b
@ -199,6 +199,8 @@ class RSS(callbacks.Plugin):
|
|||||||
for channel in channels:
|
for channel in channels:
|
||||||
if len(oldheadlines) == 0:
|
if len(oldheadlines) == 0:
|
||||||
channelnewheadlines = newheadlines[:self.registryValue('initialAnnounceHeadlines', channel)]
|
channelnewheadlines = newheadlines[:self.registryValue('initialAnnounceHeadlines', channel)]
|
||||||
|
else:
|
||||||
|
channelnewheadlines = newheadlines[:]
|
||||||
whitelist = self.registryValue('keywordWhitelist', channel)
|
whitelist = self.registryValue('keywordWhitelist', channel)
|
||||||
blacklist = self.registryValue('keywordBlacklist', channel)
|
blacklist = self.registryValue('keywordBlacklist', channel)
|
||||||
if len(whitelist) != 0:
|
if len(whitelist) != 0:
|
||||||
|
Loading…
Reference in New Issue
Block a user