From 4de28ddb110bc1638521f791245deae3d0ff1ee2 Mon Sep 17 00:00:00 2001 From: Aryan Motgi Date: Mon, 25 May 2026 23:01:47 -0700 Subject: [PATCH] fix: remove duplicated words in log message and security warning --- .../src/autogen_core/_single_threaded_agent_runtime.py | 2 +- .../autogen-core/src/autogen_core/tools/_function_tool.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/python/packages/autogen-core/src/autogen_core/_single_threaded_agent_runtime.py b/python/packages/autogen-core/src/autogen_core/_single_threaded_agent_runtime.py index 3a8a8d714ff0..9483f3b58f1a 100644 --- a/python/packages/autogen-core/src/autogen_core/_single_threaded_agent_runtime.py +++ b/python/packages/autogen-core/src/autogen_core/_single_threaded_agent_runtime.py @@ -746,7 +746,7 @@ async def _process_next(self) -> None: _warn_if_none(temp_message, "on_publish") except BaseException as e: # TODO: we should raise the intervention exception to the publisher. - logger.error(f"Exception raised in in intervention handler: {e}", exc_info=True) + logger.error(f"Exception raised in intervention handler: {e}", exc_info=True) return if temp_message is DropMessage or isinstance(temp_message, DropMessage): event_logger.info( diff --git a/python/packages/autogen-core/src/autogen_core/tools/_function_tool.py b/python/packages/autogen-core/src/autogen_core/tools/_function_tool.py index 985d7d1d1201..f21ce572dd1b 100644 --- a/python/packages/autogen-core/src/autogen_core/tools/_function_tool.py +++ b/python/packages/autogen-core/src/autogen_core/tools/_function_tool.py @@ -144,7 +144,7 @@ def _to_config(self) -> FunctionToolConfig: def _from_config(cls, config: FunctionToolConfig) -> Self: warnings.warn( "\n⚠️ SECURITY WARNING ⚠️\n" - "Loading a FunctionTool from config will execute code to import the provided global imports and and function code.\n" + "Loading a FunctionTool from config will execute code to import the provided global imports and function code.\n" "Only load configs from TRUSTED sources to prevent arbitrary code execution.", UserWarning, stacklevel=2,