Do not prevent startup when passing non-existent project

This commit is contained in:
Dominik Jain committed 2025-05-31 18:14:01 +02:00
1 parent 6daf891dbb
commit 99ade87f16
1 file changed
+7 -1
+7 -1
View File
@@ -540,7 +540,13 @@ class SerenaAgent:
# activate a project configuration (if provided or if there is only a single project available)
if project is not None:
self.activate_project_from_path_or_name(project)
try:
self.activate_project_from_path_or_name(project)
except Exception as e:
log.error(
f"Error activating project '{project}': {e}; Note that out-of-project configurations were migrated. "
"You should now pass either --project <project_name> or --project <project_root>."
)
def get_exposed_tool_instances(self) -> list["Tool"]:
"""