improved code

This commit is contained in:
2026-01-22 19:38:44 +01:00
parent 42d2758ba5
commit b56fe56f84
5 changed files with 10 additions and 8 deletions

View File

@@ -10,7 +10,7 @@ def grab_calendar(ics_url: str):
return None
try:
calendar = Calendar(response.text)
calendar = Calendar(response.content.decode("utf-8"))
except Exception:
logger.warning("Unable to parse calendar")
return None