mirror of
https://github.com/Kozea/Radicale.git
synced 2025-08-07 18:30:54 +00:00
return None instead of False if UID field is missing
This commit is contained in:
parent
bea855cb80
commit
e47747d4d4
1 changed files with 1 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue