catch broken event
This commit is contained in:
@@ -354,7 +354,10 @@ def visit_time_ranges(vobject_item: vobject.base.Component, child_name: str,
|
|||||||
for child, is_recurrence, recurrences in get_children(
|
for child, is_recurrence, recurrences in get_children(
|
||||||
vobject_item.vevent_list):
|
vobject_item.vevent_list):
|
||||||
# TODO: check if there's a timezone
|
# TODO: check if there's a timezone
|
||||||
dtstart = child.dtstart.value
|
try:
|
||||||
|
dtstart = child.dtstart.value
|
||||||
|
except AttributeError:
|
||||||
|
raise AttributeError("missing DTSTART")
|
||||||
|
|
||||||
if child.rruleset:
|
if child.rruleset:
|
||||||
dtstarts, infinity = getrruleset(child, recurrences)
|
dtstarts, infinity = getrruleset(child, recurrences)
|
||||||
|
|||||||
Reference in New Issue
Block a user