Fix loading json files with utf8 content
This commit is contained in:
parent
a6c97a304f
commit
2fa006d74e
1 changed files with 1 additions and 1 deletions
|
@ -88,7 +88,7 @@ class ContentManager(object):
|
||||||
self.log.debug("%s loadContent same json file, skipping" % content_inner_path)
|
self.log.debug("%s loadContent same json file, skipping" % content_inner_path)
|
||||||
return [], []
|
return [], []
|
||||||
|
|
||||||
new_content = json.load(open(content_path))
|
new_content = self.site.storage.loadJson(content_inner_path)
|
||||||
except Exception as err:
|
except Exception as err:
|
||||||
self.log.warning("%s load error: %s" % (content_path, Debug.formatException(err)))
|
self.log.warning("%s load error: %s" % (content_path, Debug.formatException(err)))
|
||||||
return [], []
|
return [], []
|
||||||
|
|
Loading…
Reference in a new issue