python-caldav / caldav

Apache License 2.0
317 stars 94 forks source link

Remove annoying assert from icalendar_component #274

Closed tobixen closed 1 year ago

tobixen commented 1 year ago

By default, the code would break with an ugly assert if doing obj.icalendar_component and the obj contained a recurrance set. I think that in almost all cases it will be harmless to yield the first component in the recurrence set, and I'm pretty sure that assert will blow up things for people, so I change the default to not assert anything.

(maybe we should yield a rate-limited error message instead?)