improved code
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user