diff options
author | 2020-04-10 22:43:56 -0700 | |
---|---|---|
committer | 2020-04-10 22:43:56 -0700 | |
commit | adc75ff9bbcf8b905bd78c78f253522ae5e42fc3 (patch) | |
tree | 6348981bb563e2d096a65337c4d6b037c085e7dd | |
parent | Stop setting positions when moving help channels (diff) |
Tags: explicitly use UTF-8 to read files
Not all operating systems use UTF-8 as the default encoding. For systems
that don't, reading tag files with Unicode would cause an unhandled
exception.
-rw-r--r-- | bot/cogs/tags.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/cogs/tags.py b/bot/cogs/tags.py index a6e5952ff..8705d0c61 100644 --- a/bot/cogs/tags.py +++ b/bot/cogs/tags.py @@ -43,7 +43,7 @@ class Tags(Cog): tag = { "title": tag_title, "embed": { - "description": file.read_text() + "description": file.read_text(encoding="utf-8") } } cache[tag_title] = tag |