diff options
| author | 2019-03-19 10:10:51 -0500 | |
|---|---|---|
| committer | 2019-03-19 10:10:51 -0500 | |
| commit | 3e8a07af29428f33f51942bc9568fde8175611d3 (patch) | |
| tree | bc2377d5f0b9ea0109efca77b2b122eba73a204a /bot/seasons/evergreen/snakes/utils.py | |
| parent | Merge pull request #140 from Suhail6inkling/pickup-lines (diff) | |
| parent | Update bot/resources/snakes/snake_facts.json (diff) | |
Merge pull request #144 from MadisonMcdonald/encoding-fix
specify UTF-8 for opening snake resources JSON
Diffstat (limited to 'bot/seasons/evergreen/snakes/utils.py')
| -rw-r--r-- | bot/seasons/evergreen/snakes/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/seasons/evergreen/snakes/utils.py b/bot/seasons/evergreen/snakes/utils.py index 605c7ef3..ec280223 100644 --- a/bot/seasons/evergreen/snakes/utils.py +++ b/bot/seasons/evergreen/snakes/utils.py @@ -117,7 +117,7 @@ ANGLE_RANGE = math.pi * 2 def get_resource(file: str) -> List[dict]: - with (SNAKE_RESOURCES / f"{file}.json").open() as snakefile: + with (SNAKE_RESOURCES / f"{file}.json").open(encoding="utf-8") as snakefile: return json.load(snakefile) |