simplify patch

This commit is contained in:
Peter Bieringer 2016-09-17 18:16:27 +02:00
parent ff02d17619
commit 1ffdb03106

View File

@ -719,15 +719,13 @@ class Collection(BaseCollection):
return collection.serialize()
elif self.get_meta("tag") == "VADDRESSBOOK":
items_ok = []
result = ""
for item in items:
try:
item.serialize()
items_ok.append(item)
except:
self.logger.exception("VCARD broken (skip): %s", item)
result = "".join([item.serialize() for item in items_ok])
return result
return "".join([item.serialize() for item in items_ok])
return ""
_lock = threading.Lock()