Newsfeed plugin skip broken feed formats

This commit is contained in:
shortcutme 2017-02-22 11:28:48 +01:00
parent 4aff146812
commit c08b83c299
No known key found for this signature in database
GPG Key ID: 5B63BAE6CB9613AE
1 changed files with 3 additions and 0 deletions

View File

@ -35,6 +35,9 @@ class UiWebsocketPlugin(object):
feeds = site_data.get("follow")
if not feeds:
continue
if type(feeds) is not dict:
self.log.debug("Invalid feed for site %s" % address)
continue
for name, query_set in feeds.iteritems():
site = SiteManager.site_manager.get(address)
try: