From dee9b102bdb9c18f9b921904825501032f0a3f9b Mon Sep 17 00:00:00 2001 From: Micha Date: Sat, 20 Jun 2026 08:11:01 +0200 Subject: [PATCH] Handle BOM in weather report token file --- services/posture-check/weather-day-report.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/posture-check/weather-day-report.py b/services/posture-check/weather-day-report.py index 903794c..cb40f62 100644 --- a/services/posture-check/weather-day-report.py +++ b/services/posture-check/weather-day-report.py @@ -127,7 +127,7 @@ def read_token(token_file: str) -> str: if token: return token try: - with open(token_file, "r", encoding="utf-8") as handle: + with open(token_file, "r", encoding="utf-8-sig") as handle: token = handle.read().strip() except FileNotFoundError as exc: raise WeatherReportError(