Skip to content

Commit f2ba138

Browse files
committed
fix for missing field
1 parent 32ce4ee commit f2ba138

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

abr-testing/abr_testing/data_collection/abr_robot_error.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ def get_error_runs_from_robot(ip: str) -> List[str]:
252252
f"http://{ip}:31950/runs", headers={"opentrons-version": "3"}
253253
)
254254
run_data = response.json()
255-
run_list = run_data["data"]
255+
run_list = run_data.get("data", [])
256256
for run in run_list:
257257
run_id = run["id"]
258258
num_of_errors = len(run["errors"])

0 commit comments

Comments
 (0)