fix: specify utf-8 when parsing yaml --> json

This commit is contained in:
kittentm 2026-04-21 06:09:22 +02:00
commit d9af7b3305
No known key found for this signature in database
GPG key ID: AC43DFDBC1F44A91

View file

@ -47,7 +47,7 @@ async def boss_rotation(request: Request):
})
return formatted
with open("boss.yaml", "r") as f:
with open("boss.yaml", "r", encoding='utf-8') as f:
yaml_data = yaml.safe_load(f)
start_time = yaml_data.get("DateTime")
@ -81,7 +81,7 @@ async def boss_rotation(request: Request):
}
try:
with open("fes_boss.yaml", "r") as f:
with open("fes_boss.yaml", "r", encoding='utf-8') as f:
fes_yaml = yaml.safe_load(f)
if fes_yaml: