diff --git a/sdk/python/kubeflow/training/api/training_client.py b/sdk/python/kubeflow/training/api/training_client.py index c51c0ef5ad..1b78f28749 100644 --- a/sdk/python/kubeflow/training/api/training_client.py +++ b/sdk/python/kubeflow/training/api/training_client.py @@ -577,7 +577,7 @@ def get_job_logs( logging.info("The logs of pod %s:\n %s", pod, pod_logs) except Exception: raise RuntimeError( - f"Failed to read logs for pod {namespace}/{pod.metadata.name}" + f"Failed to read logs for pod {namespace}/{pod}" ) # ------------------------------------------------------------------------ #