aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/evergreen/trivia_quiz.py
diff options
context:
space:
mode:
authorGravatar jodth07 <[email protected]>2020-05-19 07:42:41 -0400
committerGravatar jodth07 <[email protected]>2020-05-19 07:42:41 -0400
commit9c0cbed99a92b49d9bd16ef6e9b8b5c246740072 (patch)
tree612fd2fe2cd1d53dc16d3dd77efcfbc88f06a857 /bot/exts/evergreen/trivia_quiz.py
parent5/19 - evergreen | triva - fixed utf-8 bugs for windows (diff)
5/19 - bot | xmas, easter, evergreen - updated open statesments with explicit encoding
Diffstat (limited to 'bot/exts/evergreen/trivia_quiz.py')
-rw-r--r--bot/exts/evergreen/trivia_quiz.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/exts/evergreen/trivia_quiz.py b/bot/exts/evergreen/trivia_quiz.py
index faac0ee6..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(encoding="utf-8") as json_data:
+ with p.open(encoding="utf8") as json_data:
questions = json.load(json_data)
return questions