From 1ffdb0310676e296144a3f64738d52abf579878c Mon Sep 17 00:00:00 2001 From: Peter Bieringer Date: Sat, 17 Sep 2016 18:16:27 +0200 Subject: [PATCH] simplify patch --- radicale/storage.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/radicale/storage.py b/radicale/storage.py index 3edae58..6a27d3a 100644 --- a/radicale/storage.py +++ b/radicale/storage.py @@ -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()