From 5d238afb5e128f173945409f42d536bd17cb8775 Mon Sep 17 00:00:00 2001 From: Unrud Date: Thu, 27 Jul 2017 19:08:08 +0200 Subject: [PATCH] Don't check the vobject item in storage.Item This is the responsibility of the storage plugin. --- radicale/storage.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/radicale/storage.py b/radicale/storage.py index a2994c2..9e8dc00 100644 --- a/radicale/storage.py +++ b/radicale/storage.py @@ -380,11 +380,7 @@ class Item: def item(self): if self._item is None: try: - items = tuple(vobject.readComponents(self._text)) - if len(items) != 1: - raise RuntimeError( - "Content contains %d components" % len(items)) - self._item = items[0] + self._item = vobject.readOne(self._text) except Exception as e: raise RuntimeError("Failed to parse item %r from %r: %s" % (self.href, self.collection.path, e)) from e