only iterate props in REPORT request if they are there
This commit is contained in:
parent
c932ba230e
commit
b561d1428b
@ -464,7 +464,7 @@ def report(path, xml_request, collection):
|
||||
root = ET.fromstring(xml_request.encode("utf8"))
|
||||
|
||||
prop_element = root.find(_tag("D", "prop"))
|
||||
props = [prop.tag for prop in prop_element]
|
||||
props = [prop.tag for prop in prop_element] if prop_element else []
|
||||
|
||||
if collection:
|
||||
if root.tag in (_tag("C", "calendar-multiget"),
|
||||
|
Loading…
Reference in New Issue
Block a user