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 (