aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar kwzrd <[email protected]>2021-03-15 18:40:35 +0100
committerGravatar kwzrd <[email protected]>2021-03-15 18:40:35 +0100
commite475181b5c51d6363c74e0e36f51f174bfa6ba2c (patch)
tree8ce152d497941aa90171eea2c9f79dcabb52cbca
parentBranding: suppress 'ValueError' on empty-dict update (diff)
Branding: decode 'meta.md' using UTF-8
-rw-r--r--bot/exts/backend/branding/_repository.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/exts/backend/branding/_repository.py b/bot/exts/backend/branding/_repository.py
index a612b6752..e14ff4226 100644
--- a/bot/exts/backend/branding/_repository.py
+++ b/bot/exts/backend/branding/_repository.py
@@ -134,7 +134,7 @@ class BrandingRepository:
The caller is responsible for handling errors caused by misconfiguration.
"""
- attrs, description = frontmatter.parse(raw_file) # Library automatically decodes using UTF-8
+ attrs, description = frontmatter.parse(raw_file, encoding="UTF-8")
if not description:
raise BrandingMisconfiguration("No description found in 'meta.md'!")