Skip to content

Commit

Permalink
Prevent CLI error if no skill modules are provided
Browse files Browse the repository at this point in the history
  • Loading branch information
krasserm committed Jan 17, 2025
1 parent d88ad47 commit 19535a1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion freeact/cli/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@ async def amain(
workspace_path=workspace_path,
log_file=log_file,
) as env:
skill_sources = await env.executor.get_module_sources(module_names=skill_modules)
if skill_modules:
skill_sources = await env.executor.get_module_sources(module_names=skill_modules)
else:
skill_sources = None

if system_extension:
system_extension_str = await read_file(system_extension)
Expand Down

0 comments on commit 19535a1

Please sign in to comment.