Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kovalsky committed Dec 20, 2024
1 parent 40f0b95 commit e24e757
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/sempy_labs/_job_scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ def list_item_job_instances(
dfs = []
for r in responses:
for v in r.get("value", []):
fail = v.get("failureReason", {})
new_data = {
"Job Instance Id": v.get("id"),
"Item Name": item_name,
Expand All @@ -85,7 +86,7 @@ def list_item_job_instances(
"Root Activity Id": v.get("rootActivityId"),
"Start Time UTC": v.get("startTimeUtc"),
"End Time UTC": v.get("endTimeUtc"),
"Failure Reason": v.get("failureReason"),
"Error Message": fail.get('message') if fail is not None else "",
}
dfs.append(pd.DataFrame(new_data, index=[0]))

Expand Down

0 comments on commit e24e757

Please sign in to comment.