Skip to content

Commit 75d9000

Browse files
authored
Update agents.py
1 parent 276f574 commit 75d9000

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/gradient/resources/agents/agents.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -680,7 +680,7 @@ def wait_until_ready(
680680
if status in ("STATUS_FAILED", "STATUS_UNDEPLOYMENT_FAILED", "STATUS_DELETED"):
681681
raise AgentDeploymentError(
682682
f"Agent deployment failed with status: {status}",
683-
status=status or "UNKNOWN",
683+
status=status,
684684
)
685685

686686
# Check timeout
@@ -1264,7 +1264,7 @@ async def wait_until_ready(
12641264
if status in ("STATUS_FAILED", "STATUS_UNDEPLOYMENT_FAILED", "STATUS_DELETED"):
12651265
raise AgentDeploymentError(
12661266
f"Agent deployment failed with status: {status}",
1267-
status=status or "UNKNOWN",
1267+
status=status,
12681268
)
12691269

12701270
# Check timeout

0 commit comments

Comments
 (0)