diff options
author | 2020-05-19 07:42:41 -0400 | |
---|---|---|
committer | 2020-05-19 07:42:41 -0400 | |
commit | 9c0cbed99a92b49d9bd16ef6e9b8b5c246740072 (patch) | |
tree | 612fd2fe2cd1d53dc16d3dd77efcfbc88f06a857 /bot/exts/christmas/adventofcode.py | |
parent | 5/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/christmas/adventofcode.py')
-rw-r--r-- | bot/exts/christmas/adventofcode.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/exts/christmas/adventofcode.py b/bot/exts/christmas/adventofcode.py index cc3923c8..00607074 100644 --- a/bot/exts/christmas/adventofcode.py +++ b/bot/exts/christmas/adventofcode.py @@ -429,7 +429,7 @@ class AdventOfCode(commands.Cog): def _build_about_embed(self) -> discord.Embed: """Build and return the informational "About AoC" embed from the resources file.""" - with self.about_aoc_filepath.open("r") as f: + with self.about_aoc_filepath.open("r", encoding="utf8") as f: embed_fields = json.load(f) about_embed = discord.Embed(title=self._base_url, colour=Colours.soft_green, url=self._base_url) |