From c43b473c4af011b3106b17a482ba420365be2c52 Mon Sep 17 00:00:00 2001 From: Jochen Sprickerhof Date: Fri, 23 Jan 2015 14:41:41 +0100 Subject: [PATCH] Fix FutureWarning, explicitly test prop_element for None --- radicale/xmlutils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/radicale/xmlutils.py b/radicale/xmlutils.py index 17531fd..5eea43b 100644 --- a/radicale/xmlutils.py +++ b/radicale/xmlutils.py @@ -466,7 +466,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] if prop_element else [] + props = [prop.tag for prop in prop_element] if prop_element is not None else [] if collection: if root.tag in (_tag("C", "calendar-multiget"),