realign change
This commit is contained in:
parent
e05206eec3
commit
a5e3ffa427
@ -742,14 +742,7 @@ class Collection(BaseCollection):
|
|||||||
break
|
break
|
||||||
return collection.serialize()
|
return collection.serialize()
|
||||||
elif self.get_meta("tag") == "VADDRESSBOOK":
|
elif self.get_meta("tag") == "VADDRESSBOOK":
|
||||||
items_ok = []
|
return "".join([item.serialize() for item in items])
|
||||||
for item in items:
|
|
||||||
try:
|
|
||||||
item.serialize()
|
|
||||||
items_ok.append(item)
|
|
||||||
except:
|
|
||||||
self.logger.exception("VCARD broken (skip): %s", item)
|
|
||||||
return "".join([item.serialize() for item in items_ok])
|
|
||||||
return ""
|
return ""
|
||||||
|
|
||||||
_lock = threading.Lock()
|
_lock = threading.Lock()
|
||||||
|
Loading…
Reference in New Issue
Block a user