Skip to content

Commit

Permalink
Avoid crashing when object component is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
flozz authored and tobixen committed Jun 9, 2023
1 parent 674c223 commit a08d839
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions caldav/objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -1070,6 +1070,8 @@ def search(
## This should not be needed
o.load(only_if_unloaded=True)
component = o.icalendar_component
if component is None:
continue
recurrance_properties = ["exdate", "exrule", "rdate", "rrule"]
if any(key in component for key in recurrance_properties):
o.expand_rrule(start, end)
Expand Down

0 comments on commit a08d839

Please sign in to comment.