diff --git a/radicale/storage.py b/radicale/storage.py index ba54ac9b..e258879e 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):