Fix loading json files with utf8 content

This commit is contained in:
shortcutme 2019-05-21 15:54:36 +02:00
parent a6c97a304f
commit 2fa006d74e
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE

View file

@ -88,7 +88,7 @@ class ContentManager(object):
self.log.debug("%s loadContent same json file, skipping" % content_inner_path)
return [], []
new_content = json.load(open(content_path))
new_content = self.site.storage.loadJson(content_inner_path)
except Exception as err:
self.log.warning("%s load error: %s" % (content_path, Debug.formatException(err)))
return [], []