fix the lint errors

This commit is contained in:
Willem Jiang
2026-04-26 11:16:22 +08:00
parent d9f7f658be
commit 7052978a43
2 changed files with 2 additions and 6 deletions
@@ -854,9 +854,7 @@ def ensure_sandbox_initialized(runtime: ToolRuntime[ContextT, ThreadState] | Non
# Lazy acquisition: get thread_id and acquire sandbox
thread_id = get_thread_id(runtime)
if thread_id is None:
raise SandboxRuntimeError(
"Thread ID not available in runtime context, runtime config, or LangGraph config"
)
raise SandboxRuntimeError("Thread ID not available in runtime context, runtime config, or LangGraph config")
provider = get_sandbox_provider()
sandbox_id = provider.acquire(thread_id)