RSS: Ensure results is declared before trying to access it

Signed-off-by: James McCoy <jamessan@users.sourceforge.net>
This commit is contained in:
James McCoy 2013-08-24 00:04:29 -04:00
parent e7d0bfd2d0
commit a483fef39d

View File

@ -222,6 +222,7 @@ class RSS(callbacks.Plugin):
# and DoS the website in question. # and DoS the website in question.
self.acquireLock(url) self.acquireLock(url)
if self.willGetNewFeed(url): if self.willGetNewFeed(url):
results = {}
try: try:
self.log.debug('Downloading new feed from %u', url) self.log.debug('Downloading new feed from %u', url)
results = feedparser.parse(url) results = feedparser.parse(url)