Skip to content

Commit

Permalink
clean
Browse files Browse the repository at this point in the history
  • Loading branch information
pbarker committed Jun 6, 2024
1 parent 562eb55 commit a195235
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions surfkit/cli/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -1758,15 +1758,9 @@ def solve(
task_id=task.id,
)

import traceback

try:
typer.echo(f"Solving task '{task.description}' with agent '{agent}'...")
solve_v1 = V1SolveTask(task=task.to_v1())
runt.solve_task(agent, solve_v1, follow_logs=follow, attach=kill)
except:
print("An error occurred:")
traceback.print_exc()
typer.echo(f"Solving task '{task.description}' with agent '{agent}'...")
solve_v1 = V1SolveTask(task=task.to_v1())
runt.solve_task(agent, solve_v1, follow_logs=follow, attach=kill)

if kill and not follow:
typer.echo(f"Killing agent {agent}...")
Expand Down

0 comments on commit a195235

Please sign in to comment.