From e47747d4d4805d27430b96258d58f99515f09245 Mon Sep 17 00:00:00 2001 From: Unrud Date: Tue, 6 Jun 2017 20:01:06 +0200 Subject: [PATCH] return None instead of False if UID field is missing --- radicale/storage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/radicale/storage.py b/radicale/storage.py index ba54ac9..e258879 100644 --- a/radicale/storage.py +++ b/radicale/storage.py @@ -148,7 +148,7 @@ def get_etag(text): def get_uid(item): """UID value of an item if defined.""" - return hasattr(item, "uid") and item.uid.value + return (hasattr(item, "uid") or None) and item.uid.value def sanitize_path(path):