Merge pull request #226 from meyerd/master

Only iterate props in REPORT request if they are there
This commit is contained in:
Guillaume Ayoub 2014-12-14 16:50:22 +01:00
commit f2fc02501c

View File

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