mirror of
https://github.com/tiennm99/serena.git
synced 2026-08-06 20:25:49 +00:00
Catch all project activation errors for initial project
This commit is contained in:
committed by
Dominik Jain
parent
ac12430182
commit
ea5e0ced3c
+2
-5
@@ -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:
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user