Skip to content

Commit

Permalink
don't break if the calendar server denies telling details about events
Browse files Browse the repository at this point in the history
  • Loading branch information
tobixen committed Dec 6, 2024
1 parent 5705632 commit fa37f97
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion caldav/objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -1253,7 +1253,11 @@ def search(

for o in objects:
## This would not be needed if the servers would follow the standard ...
o.load(only_if_unloaded=True)
try:
o.load(only_if_unloaded=True)
except:
logging.critical("Server does not want to reveal details about the calendar object", exc_info=True)
pass

## Google sometimes returns empty objects
objects = [o for o in objects if o.has_component()]
Expand Down

0 comments on commit fa37f97

Please sign in to comment.