diff options
author | 2020-05-25 10:34:52 +0100 | |
---|---|---|
committer | 2020-05-25 10:34:52 +0100 | |
commit | bb30d2904b4a3273d4b10dc9548c542d65f0c379 (patch) | |
tree | e6bf89e968dd39a153227aa8ca060496d2c3cbec /bot/exts/evergreen/trivia_quiz.py | |
parent | Merge pull request #401 from fuzzmz/minesweeper-disabled-dm-handling (diff) | |
parent | Remove accidental extra word from docstring (diff) |
Merge pull request #413 from jodth07/encoding_bug_fix
Encoding bug fix
Diffstat (limited to 'bot/exts/evergreen/trivia_quiz.py')
-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..8dceceac 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="utf8") as json_data: questions = json.load(json_data) return questions |