Skip to content

Automate browser based workflows with AI

Null check for streamlit visualizer (#24)

Kerem Yilmazd9729985b11b
diff --git a/streamlit_app/visualizer/api.py b/streamlit_app/visualizer/api.py
index c080fb830..a2104e9a5 100644
--- a/streamlit_app/visualizer/api.py
+++ b/streamlit_app/visualizer/api.py
@@ -63,7 +63,8 @@ class SkyvernClient:
response = requests.get(url, params=params, headers=headers)
steps = response.json()
for step in steps:
- step["output"]["actions_and_results"] = json.dumps(step["output"]["actions_and_results"])
+ if step.output and "actions_and_results" in step.output:
+ step["output"]["actions_and_results"] = json.dumps(step["output"]["actions_and_results"])
return steps
def get_agent_task_video_artifact(self, task_id: str) -> dict[str, Any] | None: