From 3b820620701cd0c81cd3066c18aae6e4113d49f9 Mon Sep 17 00:00:00 2001 From: vp Date: Tue, 24 Feb 2026 22:40:30 +0300 Subject: [PATCH] style: format main.py with black --- main.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 53e8945..20349f0 100644 --- a/main.py +++ b/main.py @@ -477,10 +477,14 @@ async def _get_effective_allowed_roots(ctx: Optional[Context]) -> List[Path]: if error_code in ROOTS_UNSUPPORTED_ERROR_CODES or "method not found" in error_message: # Fallback is allowed only when roots are unsupported in this MCP client session. return fallback_roots - logger.error("MCP roots request failed; disabling file-path tools for safety.", exc_info=True) + logger.error( + "MCP roots request failed; disabling file-path tools for safety.", exc_info=True + ) return [] except Exception: - logger.error("Unexpected MCP roots failure; disabling file-path tools for safety.", exc_info=True) + logger.error( + "Unexpected MCP roots failure; disabling file-path tools for safety.", exc_info=True + ) return [] client_roots: List[Path] = []