You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by jo...@apache.org on 2019/03/29 00:47:42 UTC
[incubator-superset] 01/01: Update __init__.py
This is an automated email from the ASF dual-hosted git repository.
johnbodley pushed a commit to branch john-bodley--fix-open-backendSync
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git
commit 96ca2947410274506c14a69f367fd47a24af189f
Author: John Bodley <45...@users.noreply.github.com>
AuthorDate: Thu Mar 28 17:47:30 2019 -0700
Update __init__.py
---
superset/__init__.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/superset/__init__.py b/superset/__init__.py
index 5e77328..69ad1f5 100644
--- a/superset/__init__.py
+++ b/superset/__init__.py
@@ -45,7 +45,7 @@ CONFIG_MODULE = os.environ.get('SUPERSET_CONFIG', 'superset.config')
if not os.path.exists(config.DATA_DIR):
os.makedirs(config.DATA_DIR)
-with open(APP_DIR + '/static/assets/backendSync.json', 'r') as f:
+with open(APP_DIR + '/static/assets/backendSync.json', 'r', encoding='utf-8') as f:
frontend_config = json.load(f)
app = Flask(__name__)