Skip to content

Commit 19b30be

Browse files
committed
fix: ignore empty string in skill
1 parent 8da4a0b commit 19b30be

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

veadk/agent.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,8 @@ def load_skills(self):
314314
skills: Dict[str, Skill] = {}
315315

316316
for item in self.skills:
317+
if not item or str(item).strip() == "":
318+
continue
317319
path = Path(item)
318320
if path.exists() and path.is_dir():
319321
for skill in load_skills_from_directory(path):

0 commit comments

Comments
 (0)