aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/halloween/spookyrating.py
diff options
context:
space:
mode:
authorGravatar kwzrd <[email protected]>2020-05-25 10:34:52 +0100
committerGravatar GitHub <[email protected]>2020-05-25 10:34:52 +0100
commitbb30d2904b4a3273d4b10dc9548c542d65f0c379 (patch)
treee6bf89e968dd39a153227aa8ca060496d2c3cbec /bot/exts/halloween/spookyrating.py
parentMerge pull request #401 from fuzzmz/minesweeper-disabled-dm-handling (diff)
parentRemove accidental extra word from docstring (diff)
Merge pull request #413 from jodth07/encoding_bug_fix
Encoding bug fix
Diffstat (limited to 'bot/exts/halloween/spookyrating.py')
-rw-r--r--bot/exts/halloween/spookyrating.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/exts/halloween/spookyrating.py b/bot/exts/halloween/spookyrating.py
index 1a48194e..6f069f8c 100644
--- a/bot/exts/halloween/spookyrating.py
+++ b/bot/exts/halloween/spookyrating.py
@@ -11,7 +11,7 @@ from bot.constants import Colours
log = logging.getLogger(__name__)
-with Path("bot/resources/halloween/spooky_rating.json").open() as file:
+with Path("bot/resources/halloween/spooky_rating.json").open(encoding="utf8") as file:
SPOOKY_DATA = json.load(file)
SPOOKY_DATA = sorted((int(key), value) for key, value in SPOOKY_DATA.items())