From b561d1428b94da93bb7b8ec34c95e86f27b5b3e7 Mon Sep 17 00:00:00 2001 From: Dominik Date: Sat, 25 Oct 2014 20:28:50 +0200 Subject: [PATCH] only iterate props in REPORT request if they are there --- radicale/xmlutils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/radicale/xmlutils.py b/radicale/xmlutils.py index f5370fe..9322462 100644 --- a/radicale/xmlutils.py +++ b/radicale/xmlutils.py @@ -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"),