fix: check webhook key of Wecom tool in valid UUID form and fix typo (#2719)

This commit is contained in:
Bowen Liang
2024-03-07 15:51:06 +08:00
committed by GitHub
parent 405a00bb2c
commit 0ac250a035
3 changed files with 16 additions and 5 deletions

View 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