Skip to content

Commit

Permalink
Merge pull request #1609 from pbiering/improve-1186
Browse files Browse the repository at this point in the history
log content in case of multiple main components error
  • Loading branch information
pbiering authored Oct 29, 2024
2 parents e0c04f2 + f7c731e commit bf4f583
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion radicale/item/filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bf4f583

Please sign in to comment.