mirror of https://github.com/openclaw/openclaw.git
skill-creator: reject unclosed YAML frontmatter (#24289)
This commit is contained in:
parent
f208518cb9
commit
07edadfa8a
|
|
@ -39,7 +39,6 @@ def validate_skill(skill_path):
|
|||
frontmatter_text = _extract_frontmatter(content)
|
||||
if frontmatter_text is None:
|
||||
return False, "Invalid frontmatter format"
|
||||
|
||||
try:
|
||||
frontmatter = yaml.safe_load(frontmatter_text)
|
||||
if not isinstance(frontmatter, dict):
|
||||
|
|
|
|||
Loading…
Reference in New Issue