Null check for streamlit visualizer (#24)

This commit is contained in:
Kerem Yilmaz
2024-03-04 11:35:57 -08:00
committed by GitHub
parent 0917fa0702
commit d9729985b1

View File

@@ -63,6 +63,7 @@ class SkyvernClient:
response = requests.get(url, params=params, headers=headers) response = requests.get(url, params=params, headers=headers)
steps = response.json() steps = response.json()
for step in steps: for step in steps:
if step.output and "actions_and_results" in step.output:
step["output"]["actions_and_results"] = json.dumps(step["output"]["actions_and_results"]) step["output"]["actions_and_results"] = json.dumps(step["output"]["actions_and_results"])
return steps return steps