Skip to content

Commit 2465a95

Browse files
committed
fix(mcp-legacy-research): redact exception text in deprecated path (F014 S2)
1 parent 5bacda4 commit 2465a95

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

autosearch/mcp/server.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
from autosearch.core.loop_state import init_loop as _ls_init
2323
from autosearch.core.loop_state import update_loop as _ls_update
2424
from autosearch.core.models import ClarifyRequest, SearchMode, SubQuery
25-
from autosearch.core.redact import redact_signed_url
25+
from autosearch.core.redact import redact, redact_signed_url
2626
from autosearch.core.search_scope import SearchScope, depth_to_mode
2727
from autosearch.llm.client import LLMClient
2828

@@ -431,7 +431,7 @@ async def research(
431431
result = await factory().run(query, mode_hint=mode_hint, scope=scope)
432432
except Exception as exc:
433433
return ResearchResponse(
434-
content=f"[error] {exc}",
434+
content=redact(f"[error] {exc}"),
435435
channel_empty_calls={},
436436
routing_trace={},
437437
delivery_status="error",

0 commit comments

Comments
 (0)