From 2fa006d74eff42cbfa579021496c34864a1bb732 Mon Sep 17 00:00:00 2001 From: shortcutme Date: Tue, 21 May 2019 15:54:36 +0200 Subject: [PATCH] Fix loading json files with utf8 content --- src/Content/ContentManager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Content/ContentManager.py b/src/Content/ContentManager.py index 51717fee..49d929c8 100644 --- a/src/Content/ContentManager.py +++ b/src/Content/ContentManager.py @@ -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 [], []