diff --git a/src/swf_typed/_executions.py b/src/swf_typed/_executions.py index ab985ae..83250fa 100644 --- a/src/swf_typed/_executions.py +++ b/src/swf_typed/_executions.py @@ -296,7 +296,7 @@ def from_api(cls, data) -> "ExecutionDetails": info=ExecutionInfo.from_api(data["executionInfo"]), configuration=config, n_open=ExecutionOpenCounts.from_api(data["openCounts"]), - latest_activity_task_scheduled=data["latestActivityTaskTimestamp"], + latest_activity_task_scheduled=data.get("latestActivityTaskTimestamp"), latest_context=data.get("latestExecutionContext"), )