only iterate props in REPORT request if they are there

This commit is contained in:
Dominik 2014-10-25 20:28:50 +02:00
parent c932ba230e
commit b561d1428b

View File

@ -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"),