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/snakes/converter.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/snakes/converter.py')
-rw-r--r-- | bot/exts/evergreen/snakes/converter.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/exts/evergreen/snakes/converter.py b/bot/exts/evergreen/snakes/converter.py index d4e93b56..55609b8e 100644 --- a/bot/exts/evergreen/snakes/converter.py +++ b/bot/exts/evergreen/snakes/converter.py @@ -63,12 +63,12 @@ class Snake(Converter): """Build list of snakes from the static snake resources.""" # Get all the snakes if cls.snakes is None: - with (SNAKE_RESOURCES / "snake_names.json").open() as snakefile: + with (SNAKE_RESOURCES / "snake_names.json").open(encoding="utf8") as snakefile: cls.snakes = json.load(snakefile) # Get the special cases if cls.special_cases is None: - with (SNAKE_RESOURCES / "special_snakes.json").open() as snakefile: + with (SNAKE_RESOURCES / "special_snakes.json").open(encoding="utf8") as snakefile: special_cases = json.load(snakefile) cls.special_cases = {snake['name'].lower(): snake for snake in special_cases} |