mirror of
https://github.com/Kozea/Radicale.git
synced 2025-06-26 16:45:52 +00:00
fix-issue-1635: code
This commit is contained in:
parent
f725ee780f
commit
38c236aa02
1 changed files with 5 additions and 2 deletions
|
@ -274,8 +274,11 @@ def visit_time_ranges(vobject_item: vobject.base.Component, child_name: str,
|
||||||
if hasattr(comp, "recurrence_id") and comp.recurrence_id.value:
|
if hasattr(comp, "recurrence_id") and comp.recurrence_id.value:
|
||||||
recurrences.append(comp.recurrence_id.value)
|
recurrences.append(comp.recurrence_id.value)
|
||||||
if comp.rruleset:
|
if comp.rruleset:
|
||||||
# Prevent possible infinite loop
|
if comp.rruleset._len == None:
|
||||||
raise ValueError("Overwritten recurrence with RRULESET")
|
logger.warning("Ignore empty RRULESET in item at RECURRENCE-ID with value '%s' and UID '%s'", comp.recurrence_id.value, comp.uid.value)
|
||||||
|
else:
|
||||||
|
# Prevent possible infinite loop
|
||||||
|
raise ValueError("Overwritten recurrence with RRULESET")
|
||||||
rec_main = comp
|
rec_main = comp
|
||||||
yield comp, True, []
|
yield comp, True, []
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue