diff options
author | 2020-05-19 07:27:54 -0400 | |
---|---|---|
committer | 2020-05-19 07:27:54 -0400 | |
commit | 16a28ac99af855b6dd03bb9cc8c8951fbfeade59 (patch) | |
tree | a1d6dc56a2fc4253c86c126d676e5f4d21949a0f | |
parent | Merge pull request #400 from Numerlor/issue-command-dev-contrib (diff) |
5/19 - evergreen | triva - fixed utf-8 bugs for windows
-rw-r--r-- | bot/exts/evergreen/trivia_quiz.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/exts/evergreen/trivia_quiz.py b/bot/exts/evergreen/trivia_quiz.py index c1a271e8..faac0ee6 100644 --- a/bot/exts/evergreen/trivia_quiz.py +++ b/bot/exts/evergreen/trivia_quiz.py @@ -40,7 +40,7 @@ class TriviaQuiz(commands.Cog): def load_questions() -> dict: """Load the questions from the JSON file.""" p = Path("bot", "resources", "evergreen", "trivia_quiz.json") - with p.open() as json_data: + with p.open(encoding="utf-8") as json_data: questions = json.load(json_data) return questions |