mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-21 10:17:59 -05:00
Don't let the system encoding screw with things,
specify opens as happening with utf-8 encoding
This commit is contained in:
@@ -465,7 +465,7 @@ class Trivia:
|
||||
raise FileNotFoundError("Could not find the `{}` category"
|
||||
"".format(category))
|
||||
|
||||
with path.open() as file:
|
||||
with path.open(encoding='utf-8') as file:
|
||||
try:
|
||||
dict_ = yaml.load(file)
|
||||
except yaml.error.YAMLError as exc:
|
||||
|
||||
Reference in New Issue
Block a user