feat(uuid): enhance UUID validation to check for empty strings

This commit is contained in:
Harry 2025-07-16 15:46:44 +08:00
parent f9f3c207f4
commit 5db388716b

View File

@ -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: