Skip to content

Commit a041314

Browse files
chore: update error message formatting (#31980)
1 parent 56d6d69 commit a041314

File tree

1 file changed

+2
-2
lines changed
  • libs/langchain/langchain/agents/openai_assistant

1 file changed

+2
-2
lines changed

libs/langchain/langchain/agents/openai_assistant/base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -649,7 +649,7 @@ def _get_response(self, run: Any) -> Any:
649649
)
650650
return actions
651651
run_info = json.dumps(run.dict(), indent=2)
652-
msg = f"Unexpected run status: {run.status}. Full run info:\n\n{run_info})"
652+
msg = f"Unexpected run status: {run.status}. Full run info:\n\n{run_info}"
653653
raise ValueError(msg)
654654

655655
def _wait_for_run(self, run_id: str, thread_id: str) -> Any:
@@ -802,7 +802,7 @@ async def _aget_response(self, run: Any) -> Any:
802802
)
803803
return actions
804804
run_info = json.dumps(run.dict(), indent=2)
805-
msg = f"Unexpected run status: {run.status}. Full run info:\n\n{run_info})"
805+
msg = f"Unexpected run status: {run.status}. Full run info:\n\n{run_info}"
806806
raise ValueError(msg)
807807

808808
async def _await_for_run(self, run_id: str, thread_id: str) -> Any:

0 commit comments

Comments
 (0)