Skip to content

Commit

Permalink
Include the sessions plugin status key in return value
Browse files Browse the repository at this point in the history
  • Loading branch information
moonbox3 committed Dec 9, 2024
1 parent 049cbbf commit dc821ff
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ async def execute_code(self, code: Annotated[str, "The valid Python code to exec
)
response.raise_for_status()
result = response.json()["properties"]
return f"Result:\n{result['result']}Stdout:\n{result['stdout']}Stderr:\n{result['stderr']}"
return f"Status:\n{result['status']}Result:\n{result['result']}Stdout:\n{result['stdout']}Stderr:\n{result['stderr']}" # noqa: E501
except HTTPStatusError as e:
error_message = e.response.text if e.response.text else e.response.reason_phrase
raise FunctionExecutionException(
Expand Down

0 comments on commit dc821ff

Please sign in to comment.