Skip to content

Commit 3e11457

Browse files
Update keras_remote/backend/gke_client.py
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent b5990dd commit 3e11457

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

keras_remote/backend/gke_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -418,8 +418,8 @@ def _check_node_pool_exists_cached(selector_items) -> bool:
418418
cmd.extend(
419419
["--cluster", cluster, "--location", location, "--project", project]
420420
)
421-
except Exception:
422-
pass
421+
except Exception as e:
422+
logging.warning("Could not determine cluster context from kubeconfig: %s", e)
423423

424424
out = subprocess.check_output(cmd, text=True, stderr=subprocess.DEVNULL)
425425
pools = json.loads(out)

0 commit comments

Comments
 (0)