Skip to content

Commit

Permalink
fix: Raise agent not found error on assertion failure
Browse files Browse the repository at this point in the history
  • Loading branch information
whiterabbit1983 committed Apr 15, 2024
1 parent 8b9d227 commit dac1f75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion agents-api/agents_api/routers/agents/routers.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ async def update_agent(
detail="Agent not found",
)
except QueryException as e:
if e.code == "transact::assertion_failure":
if e.code in ("transact::assertion_failure", "eval::assert_some_failure"):
raise AgentNotFoundError(x_developer_id, agent_id)

raise
Expand Down

0 comments on commit dac1f75

Please sign in to comment.