Fix empty filter

DAVdroid sends <CARD:filter />, which causes an exception.
This commit is contained in:
Unrud 2016-08-24 17:45:10 +02:00
parent 3b29a56c81
commit d1dbd1df54

View File

@ -809,7 +809,8 @@ def report(path, xml_request, collection):
match = (
_comp_match if collection.get_meta("tag") == "VCALENDAR"
else _prop_match)
if not all(match(item, filter_[0]) for filter_ in filters):
if not all(match(item, filter_[0]) for filter_ in filters
if filter_):
continue
found_props = []