mirror of
https://github.com/Skyvern-AI/skyvern.git
synced 2025-09-10 15:35:51 +00:00
Null check for streamlit visualizer (#26)
This commit is contained in:
parent
b8b32b347f
commit
7322eac7b9
1 changed files with 6 additions and 1 deletions
|
@ -63,7 +63,12 @@ class SkyvernClient:
|
|||
response = requests.get(url, params=params, headers=headers)
|
||||
steps = response.json()
|
||||
for step in steps:
|
||||
if "output" in step and "actions_and_results" in step["output"]:
|
||||
if (
|
||||
"output" in step
|
||||
and step["output"] is not None
|
||||
and "actions_and_results" in step["output"]
|
||||
and step["output"]["actions_and_results"] is not None
|
||||
):
|
||||
step["output"]["actions_and_results"] = json.dumps(step["output"]["actions_and_results"])
|
||||
return steps
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue