From 059afef35d111640e29200bb8c53a3eb5ee7e005 Mon Sep 17 00:00:00 2001 From: Peter Bieringer Date: Tue, 29 Oct 2024 07:19:45 +0100 Subject: [PATCH 1/2] log content in case of multiple main components error --- radicale/item/filter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/radicale/item/filter.py b/radicale/item/filter.py index cb3e8cdbd..61b7c1b4b 100644 --- a/radicale/item/filter.py +++ b/radicale/item/filter.py @@ -279,7 +279,7 @@ def get_children(components: Iterable[vobject.base.Component]) -> Iterator[ 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 From f7c731e1898c51fb606a8ff6f9e2d5565fa65fe7 Mon Sep 17 00:00:00 2001 From: Peter Bieringer Date: Tue, 29 Oct 2024 07:19:54 +0100 Subject: [PATCH 2/2] changelog: log content in case of multiple main components error --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 965b9f53b..595b534fb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,7 @@ # Changelog +* Enhancement: log content in case of multiple main components error + ## 3.3.0 * Adjustment: option [auth] htpasswd_encryption change default from "md5" to "autodetect"