Skip to content

Commit

Permalink
[V3 Data Converter] Python3.5 compatibility issue patch (#1491)
Browse files Browse the repository at this point in the history
* python3.5 patch

* urf -> utf
  • Loading branch information
Michael H authored and tekulvw committed Apr 3, 2018
1 parent 9f4a7f7 commit 84b0df0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion redbot/core/utils/data_converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def json_load(file_path: Path):
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
Expand Down

0 comments on commit 84b0df0

Please sign in to comment.