mirror of
https://github.com/Kozea/Radicale.git
synced 2025-04-04 13:47:37 +03:00
log content in case of multiple main components error
This commit is contained in:
parent
5cafd29d7f
commit
059afef35d
1 changed files with 1 additions and 1 deletions
|
@ -279,7 +279,7 @@ def visit_time_ranges(vobject_item: vobject.base.Component, child_name: str,
|
||||||
yield comp, True, []
|
yield comp, True, []
|
||||||
else:
|
else:
|
||||||
if main is not None:
|
if main is not None:
|
||||||
raise ValueError("Multiple main components")
|
raise ValueError("Multiple main components. Got comp: {}".format(comp))
|
||||||
main = comp
|
main = comp
|
||||||
if main is None and len(recurrences) == 1:
|
if main is None and len(recurrences) == 1:
|
||||||
main = rec_main
|
main = rec_main
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue