log content in case of multiple main components error

This commit is contained in:
Peter Bieringer 2024-10-29 07:19:45 +01:00
parent 5cafd29d7f
commit 059afef35d

View file

@ -279,7 +279,7 @@ def visit_time_ranges(vobject_item: vobject.base.Component, child_name: str,
yield comp, True, []
else:
if main is not None:
raise ValueError("Multiple main components")
raise ValueError("Multiple main components. Got comp: {}".format(comp))
main = comp
if main is None and len(recurrences) == 1:
main = rec_main