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/christmas/adventofcode.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/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) |