Catch all project activation errors for initial project

This commit is contained in:
Dominik Jain
2025-07-18 11:36:01 +02:00
committed by Dominik Jain
parent ac12430182
commit ea5e0ced3c
+2 -5
View File
@@ -212,11 +212,8 @@ class SerenaAgent:
if project is not None:
try:
self.activate_project_from_path_or_name(project)
except ProjectNotFoundError 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>."
)
except Exception as e:
log.error(f"Error activating project '{project}' at startup: {e}")
def record_tool_usage_if_enabled(self, input_kwargs: dict, tool_result: str | dict, tool: Tool) -> None:
"""