Skip to content

Commit 9f9607c

Browse files
committed
chore: ruff format
1 parent 9ed7504 commit 9f9607c

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

astrbot/core/provider/manager.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,9 @@ async def initialize(
335335
self.curr_tts_provider_inst = self.tts_provider_insts[0]
336336

337337
try:
338-
strict_mcp_init = os.getenv("ASTRBOT_MCP_INIT_STRICT", "").strip().lower() in {
338+
strict_mcp_init = os.getenv(
339+
"ASTRBOT_MCP_INIT_STRICT", ""
340+
).strip().lower() in {
339341
"1",
340342
"true",
341343
"yes",
@@ -345,7 +347,7 @@ async def initialize(
345347
raise_on_all_failed=strict_mcp_init,
346348
init_timeout=init_timeout,
347349
)
348-
except Exception as e:
350+
except Exception:
349351
logger.error("MCP service initialization failed", exc_info=True)
350352

351353
def dynamic_import_provider(self, type: str) -> None:

0 commit comments

Comments
 (0)