From 28e643dec1440f738f33a02c58a1d2173c64e21b Mon Sep 17 00:00:00 2001 From: Unrud Date: Sat, 28 May 2016 22:46:20 +0200 Subject: [PATCH] Don't pass None to vobject.readComponents If an empty collections is created with PUT, content is None. --- radicale/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/radicale/__init__.py b/radicale/__init__.py index fb23675..bf9e149 100644 --- a/radicale/__init__.py +++ b/radicale/__init__.py @@ -546,7 +546,7 @@ class Application: # Case 1: No item and no ETag precondition: Add new item # Case 2: Item and ETag precondition verified: Modify item # Case 3: Item and no Etag precondition: Force modifying item - items = list(vobject.readComponents(content)) + items = list(vobject.readComponents(content or "")) if items: if item: # PUT is modifying an existing item