Commit 7317d882 authored by Keith Packard's avatar Keith Packard

Make sure the addressbook-description or calendar-description are not None

This avoids attempting to return None as a string
Signed-off-by: 's avatarKeith Packard <>
parent 929557cd
......@@ -225,6 +225,8 @@ def propfind(path, xml_request, collection, depth, context):
elif tag in (_tag("A", "addressbook-description"),
_tag("C", "calendar-description")) and is_collection:
element.text = item.get_description()
if not element.text:
element.text = "no description"
status = ET.Element(_tag("D", "status"))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment