From 2491064849cc01f30c93a8298d191b2678c60292 Mon Sep 17 00:00:00 2001 From: Peter Bieringer Date: Fri, 6 Dec 2024 05:34:28 +0100 Subject: [PATCH] fix for https://github.com/Kozea/Radicale/issues/1515 --- radicale/app/report.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/radicale/app/report.py b/radicale/app/report.py index da06b61d..f83e2d79 100644 --- a/radicale/app/report.py +++ b/radicale/app/report.py @@ -171,7 +171,9 @@ def xml_report(base_prefix: str, path: str, xml_request: Optional[ET.Element], xmlutils.make_human_tag(root.tag), path) return client.FORBIDDEN, xmlutils.webdav_error("D:supported-report") - props: Union[ET.Element, List] = root.find(xmlutils.make_clark("D:prop")) or [] + props: Union[ET.Element, List] = root.find(xmlutils.make_clark("D:prop")) + if props is None: + props: Union[ET.Element, List] = [] hreferences: Iterable[str] if root.tag in (