Skip to content

Commit

Permalink
fix for Kozea#1515
Browse files Browse the repository at this point in the history
  • Loading branch information
pbiering committed Dec 6, 2024
1 parent 4af7b4e commit 2491064
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion radicale/app/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down

0 comments on commit 2491064

Please sign in to comment.