Merge pull request #226 from meyerd/master
Only iterate props in REPORT request if they are there
This commit is contained in:
commit
f2fc02501c
@ -463,7 +463,7 @@ def report(path, xml_request, collection):
|
|||||||
root = ET.fromstring(xml_request.encode("utf8"))
|
root = ET.fromstring(xml_request.encode("utf8"))
|
||||||
|
|
||||||
prop_element = root.find(_tag("D", "prop"))
|
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 collection:
|
||||||
if root.tag in (_tag("C", "calendar-multiget"),
|
if root.tag in (_tag("C", "calendar-multiget"),
|
||||||
|
Loading…
Reference in New Issue
Block a user