Skip to content

Commit

Permalink
fix-issue-1635: code
Browse files Browse the repository at this point in the history
  • Loading branch information
pbiering committed Dec 5, 2024
1 parent f725ee7 commit 38c236a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions radicale/item/filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,8 +274,11 @@ def get_children(components: Iterable[vobject.base.Component]) -> Iterator[
if hasattr(comp, "recurrence_id") and comp.recurrence_id.value:
recurrences.append(comp.recurrence_id.value)
if comp.rruleset:
# Prevent possible infinite loop
raise ValueError("Overwritten recurrence with RRULESET")
if comp.rruleset._len == None:
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
yield comp, True, []
else:
Expand Down

0 comments on commit 38c236a

Please sign in to comment.