[V3 Data Converter] Python3.5 compatibility issue patch (#1491)

* python3.5 patch

* urf -> utf
This commit is contained in:
Michael H 2018-04-02 22:17:40 -04:00 committed by Will
parent 9f4a7f7623
commit 84b0df0437

View File

@ -28,7 +28,7 @@ class DataConverter:
The file isn't valid JSON
"""
try:
with open(file_path, mode='r') as f:
with file_path.open(mode='r', encoding='utf-8') as f:
data = json.load(f)
except (FileNotFoundError, json.JSONDecodeError):
raise