File tree Expand file tree Collapse file tree 3 files changed +6
-7
lines changed
src/mcp_agent/cli/cloud/commands/workflows Expand file tree Collapse file tree 3 files changed +6
-7
lines changed Original file line number Diff line number Diff line change 11"""Workflow cancel command implementation."""
22
3- import json
43from typing import Optional
54
65import 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]" )
Original file line number Diff line number Diff 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 (
Original file line number Diff line number Diff 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 ))
You can’t perform that action at this time.
0 commit comments