From 8bc1a47a78f52868e6ea97b89a7a749440b6c284 Mon Sep 17 00:00:00 2001 From: Tim O'Farrell Date: Tue, 23 Dec 2025 15:18:36 -0700 Subject: [PATCH] Fix for error in get_sandbox_by_session_api_key (#12147) --- openhands/app_server/sandbox/remote_sandbox_service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openhands/app_server/sandbox/remote_sandbox_service.py b/openhands/app_server/sandbox/remote_sandbox_service.py index 076c478478..ef60724d9a 100644 --- a/openhands/app_server/sandbox/remote_sandbox_service.py +++ b/openhands/app_server/sandbox/remote_sandbox_service.py @@ -187,7 +187,7 @@ class RemoteSandboxService(SandboxService): return SandboxStatus.MISSING status = None - pod_status = runtime['pod_status'].lower() + pod_status = (runtime.get('pod_status') or '').lower() if pod_status: status = POD_STATUS_MAPPING.get(pod_status, None)