diff --git a/lib/crewai/src/crewai/task.py b/lib/crewai/src/crewai/task.py index e12caa2af..f3e04d9a4 100644 --- a/lib/crewai/src/crewai/task.py +++ b/lib/crewai/src/crewai/task.py @@ -592,7 +592,7 @@ async def _aexecute_core( self.agent = agent if not agent: raise Exception( - f"The task '{self.description}' has no agent assigned, therefore it can't be executed directly and should be executed in a Crew using a specific process that support that, like hierarchical." + f"The task '{self.description}' has no agent assigned, therefore it can't be executed directly and should be executed in a Crew using a specific process that supports that, like hierarchical." ) self.prompt_context = context @@ -714,7 +714,7 @@ def _execute_core( self.agent = agent if not agent: raise Exception( - f"The task '{self.description}' has no agent assigned, therefore it can't be executed directly and should be executed in a Crew using a specific process that support that, like hierarchical." + f"The task '{self.description}' has no agent assigned, therefore it can't be executed directly and should be executed in a Crew using a specific process that supports that, like hierarchical." ) self.prompt_context = context diff --git a/lib/crewai/src/crewai/utilities/i18n.py b/lib/crewai/src/crewai/utilities/i18n.py index 8d091dd52..1170f6d0f 100644 --- a/lib/crewai/src/crewai/utilities/i18n.py +++ b/lib/crewai/src/crewai/utilities/i18n.py @@ -20,7 +20,7 @@ class I18N(BaseModel): _prompts: dict[str, dict[str, str]] = PrivateAttr() prompt_file: str | None = Field( default=None, - description="Path to the prompt_file file to load", + description="Path to the prompt_file to load", ) @model_validator(mode="after") @@ -125,7 +125,7 @@ def retrieve( try: return self._prompts[kind][key] except Exception as e: - raise Exception(f"Prompt for '{kind}':'{key}' not found.") from e + raise Exception(f"Prompt for '{kind}':'{key}' not found.") from e @lru_cache(maxsize=None)