Skip to content

Commit d3e55b9

Browse files
m-y-moCopilot
andauthored
Update main.py
Co-authored-by: Copilot <[email protected]>
1 parent 9848f00 commit d3e55b9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

main.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,10 @@ async def on_handoff_hook(
414414

415415
taskflow = available_tools.taskflows.get(t)
416416
if taskflow is None:
417-
await render_model_output(f"** 🤖❗ Input Error: No such taskflow: {t}. Available taskflows are: {'\n' + '\n'.join(available_tools.taskflows.keys())}")
417+
taskflow_list = '\n'.join(available_tools.taskflows.keys())
418+
await render_model_output(
419+
f"** 🤖❗ Input Error: No such taskflow: {t}. Available taskflows are:\n{taskflow_list}"
420+
)
418421
raise ValueError(f"No such taskflow: {t}")
419422

420423
await render_model_output(f"** 🤖💪 Running Task Flow: {t}\n")

0 commit comments

Comments
 (0)