Skip to content

Commit 6e6696c

Browse files
committed
fix lint
1 parent 621e33c commit 6e6696c

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

src/mcp_agent/cli/cloud/commands/workflows/cancel/main.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
"""Workflow cancel command implementation."""
22

3-
import json
43
from typing import Optional
54

65
import typer
@@ -59,7 +58,7 @@ async def _cancel_workflow_async(
5958
success = success.lower() == 'true'
6059

6160
if success:
62-
console.print(f"[yellow]⚠[/yellow] Successfully cancelled workflow")
61+
console.print("[yellow]⚠[/yellow] Successfully cancelled workflow")
6362
console.print(f" Run ID: [cyan]{run_id}[/cyan]")
6463
if reason:
6564
console.print(f" Reason: [dim]{reason}[/dim]")

src/mcp_agent/cli/cloud/commands/workflows/describe/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def print_workflow_status(workflow_status: dict) -> None:
109109
from datetime import datetime
110110
created_dt = datetime.fromisoformat(created_at.replace('Z', '+00:00'))
111111
created_at = created_dt.strftime('%Y-%m-%d %H:%M:%S')
112-
except:
112+
except (ValueError, TypeError):
113113
pass # Keep original format if parsing fails
114114

115115
console.print(

src/mcp_agent/cli/cloud/commands/workflows/resume/main.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,9 @@ def resume_workflow(
9393
if payload:
9494
try:
9595
json.loads(payload)
96-
console.print(f"[dim]Resuming with JSON payload...[/dim]")
96+
console.print("[dim]Resuming with JSON payload...[/dim]")
9797
except json.JSONDecodeError:
98-
console.print(f"[dim]Resuming with text payload...[/dim]")
98+
console.print("[dim]Resuming with text payload...[/dim]")
9999

100100
run_async(_signal_workflow_async(server_id_or_url, run_id, "resume", payload))
101101

@@ -119,8 +119,8 @@ def suspend_workflow(
119119
if payload:
120120
try:
121121
json.loads(payload)
122-
console.print(f"[dim]Suspending with JSON payload...[/dim]")
122+
console.print("[dim]Suspending with JSON payload...[/dim]")
123123
except json.JSONDecodeError:
124-
console.print(f"[dim]Suspending with text payload...[/dim]")
124+
console.print("[dim]Suspending with text payload...[/dim]")
125125

126126
run_async(_signal_workflow_async(server_id_or_url, run_id, "suspend", payload))

0 commit comments

Comments
 (0)