fix: check webhook key of Wecom tool in valid UUID form and fix typo (#2719)
This commit is contained in:
9
api/core/tools/utils/uuid_utils.py
Normal file
9
api/core/tools/utils/uuid_utils.py
Normal file
@@ -0,0 +1,9 @@
|
||||
import uuid
|
||||
|
||||
|
||||
def is_valid_uuid(uuid_str: str) -> bool:
|
||||
try:
|
||||
uuid.UUID(uuid_str)
|
||||
return True
|
||||
except Exception:
|
||||
return False
|
Reference in New Issue
Block a user