Framework for orchestrating role-playing, autonomous AI agents. By fostering collaborative intelligence, CrewAI empowers agents to work together seamlessly, tackling complex tasks.
flow template copy fix (#1364)
Rip&Tear42bea0018449
diff --git a/src/crewai/cli/create_flow.py b/src/crewai/cli/create_flow.pyindex 6db5bd6a9..57292d68c 100644--- a/src/crewai/cli/create_flow.py+++ b/src/crewai/cli/create_flow.py@@ -38,7 +38,15 @@ def create_flow(name):]def process_file(src_file, dst_file):- with open(src_file, "r") as file:+ if src_file.suffix in ['.pyc', '.pyo', '.pyd']:+ return++ try:+ with open(src_file, "r", encoding="utf-8") as file:+ content = file.read()+ except Exception as e:+ click.secho(f"Error processing file {src_file}: {e}", fg="red")+ returncontent = file.read()content = content.replace("{{name}}", name)