mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-07 03:38:53 -05:00
[V3 Data Converter] Python3.5 compatibility issue patch (#1491)
* python3.5 patch * urf -> utf
This commit is contained in:
parent
9f4a7f7623
commit
84b0df0437
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user