mirror of
https://github.com/langgenius/dify.git
synced 2026-06-23 12:31:13 +08:00
feat(uuid): enhance UUID validation to check for empty strings
This commit is contained in:
parent
f9f3c207f4
commit
5db388716b
@ -2,7 +2,7 @@ import uuid
|
||||
|
||||
|
||||
def is_valid_uuid(uuid_str: str | None) -> bool:
|
||||
if uuid_str is None:
|
||||
if uuid_str is None or len(uuid_str) == 0:
|
||||
return False
|
||||
try:
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user