simplify patch
This commit is contained in:
parent
ff02d17619
commit
1ffdb03106
@ -719,15 +719,13 @@ class Collection(BaseCollection):
|
|||||||
return collection.serialize()
|
return collection.serialize()
|
||||||
elif self.get_meta("tag") == "VADDRESSBOOK":
|
elif self.get_meta("tag") == "VADDRESSBOOK":
|
||||||
items_ok = []
|
items_ok = []
|
||||||
result = ""
|
|
||||||
for item in items:
|
for item in items:
|
||||||
try:
|
try:
|
||||||
item.serialize()
|
item.serialize()
|
||||||
items_ok.append(item)
|
items_ok.append(item)
|
||||||
except:
|
except:
|
||||||
self.logger.exception("VCARD broken (skip): %s", item)
|
self.logger.exception("VCARD broken (skip): %s", item)
|
||||||
result = "".join([item.serialize() for item in items_ok])
|
return "".join([item.serialize() for item in items_ok])
|
||||||
return result
|
|
||||||
return ""
|
return ""
|
||||||
|
|
||||||
_lock = threading.Lock()
|
_lock = threading.Lock()
|
||||||
|
Loading…
Reference in New Issue
Block a user