Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions sagemaker-train/src/sagemaker/train/evaluate/execution.py
Original file line number Diff line number Diff line change
Expand Up @@ -904,7 +904,7 @@ def wait(
if ipython is not None and 'IPKernelApp' in ipython.config:
is_jupyter = True
from IPython.display import display, HTML, clear_output
except:
except Exception:
pass

if is_jupyter:
Expand Down Expand Up @@ -958,7 +958,7 @@ def wait(
end = datetime.fromisoformat(step.end_time.replace('Z', '+00:00'))
duration_seconds = (end - start).total_seconds()
duration = f"{duration_seconds:.1f}s"
except:
except Exception:
duration = "N/A"
elif step.start_time:
duration = "Running..."
Expand All @@ -982,7 +982,7 @@ def wait(
# Add error indicator if failures exist
if has_failures:
if step.failure_reason:
row_data.append("")
row_data.append("❌")
failed_steps.append(step)
else:
row_data.append("")
Expand All @@ -1005,7 +1005,7 @@ def wait(

for step in failed_steps:
content_parts.append(Text("")) # Empty line before each failure
content_parts.append(Text(f" {step.display_name or step.name}:", style="bold red"))
content_parts.append(Text(f"• {step.display_name or step.name}:", style="bold red"))
content_parts.append(Text(f" {step.failure_reason}", style="red"))

combined_content = Group(*content_parts)
Expand Down
Loading