We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ed7504 commit 9f9607cCopy full SHA for 9f9607c
1 file changed
astrbot/core/provider/manager.py
@@ -335,7 +335,9 @@ async def initialize(
335
self.curr_tts_provider_inst = self.tts_provider_insts[0]
336
337
try:
338
- strict_mcp_init = os.getenv("ASTRBOT_MCP_INIT_STRICT", "").strip().lower() in {
+ strict_mcp_init = os.getenv(
339
+ "ASTRBOT_MCP_INIT_STRICT", ""
340
+ ).strip().lower() in {
341
"1",
342
"true",
343
"yes",
@@ -345,7 +347,7 @@ async def initialize(
345
347
raise_on_all_failed=strict_mcp_init,
346
348
init_timeout=init_timeout,
349
)
- except Exception as e:
350
+ except Exception:
351
logger.error("MCP service initialization failed", exc_info=True)
352
353
def dynamic_import_provider(self, type: str) -> None:
0 commit comments