Fixed cancel condition for kernel feed

This commit is contained in:
mrhanky 2017-07-04 18:47:23 +02:00
parent fb23b9d340
commit 325c7f47a3
No known key found for this signature in database
GPG Key ID: 67D772C481CB41B8

View File

@ -45,7 +45,7 @@ class Linux(Plugin):
feed = feedparser.parse(self.KERNEL_FEED) feed = feedparser.parse(self.KERNEL_FEED)
# Cancel if no feed or entries # Cancel if no feed or entries
if not feed or 'entries' in feed: if not feed or not feed.get('entries'):
self.log.error('Error fetching kernel.org releases feed.') self.log.error('Error fetching kernel.org releases feed.')
return return