Skip to content

Commit a95fc1f

Browse files
Update state-manager/app/controller/executed_state.py
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent cbb4319 commit a95fc1f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

state-manager/app/controller/executed_state.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ async def executed_state(namespace_name: str, state_id: PydanticObjectId, body:
6565
).to_list()
6666

6767
if len(inserted_states) != len(new_states):
68-
raise Exception(f"Failed to insert all new states. Expected {len(new_states)} states, but only {len(inserted_states)} were inserted")
68+
raise RuntimeError(f"Failed to insert all new states. Expected {len(new_states)} states, but only {len(inserted_states)} were inserted")
6969

7070
for inserted_state in inserted_states:
7171
background_tasks.add_task(create_next_state, inserted_state)

0 commit comments

Comments
 (0)