error proof caldav_event
This commit is contained in:
@@ -73,7 +73,7 @@ def get_ongoing_or_next_event(url, username, password):
|
|||||||
return next_event_dict
|
return next_event_dict
|
||||||
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(f"Error accessing {url}: {e}")
|
print(f"Error accessing {url}: {str(e)[:30]}...")
|
||||||
return None
|
return None
|
||||||
|
|
||||||
def is_expired(event_dict: dict):
|
def is_expired(event_dict: dict):
|
||||||
|
|||||||
Reference in New Issue
Block a user