Skip to content

Commit 2a19b3c

Browse files
committed
fix: invalidMatrixDetails can be None
1 parent b825cb5 commit 2a19b3c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/firebase_functions/test_lab_fn.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ class TestMatrixCompletedData:
170170
State of the test matrix.
171171
"""
172172

173-
invalid_matrix_details: str
173+
invalid_matrix_details: str | None
174174
"""
175175
Code that describes why the test matrix is considered invalid. Only set for
176176
matrices in the INVALID state.
@@ -210,7 +210,7 @@ def _event_handler(func: _C1, raw: _ce.CloudEvent) -> None:
210210
create_time=_dt.datetime.strptime(event_data["createTime"],
211211
"%Y-%m-%dT%H:%M:%S.%f%z"),
212212
state=TestState(event_data["state"]),
213-
invalid_matrix_details=event_data["invalidMatrixDetails"],
213+
invalid_matrix_details=event_data.get("invalidMatrixDetails"),
214214
outcome_summary=OutcomeSummary(event_data["outcomeSummary"]),
215215
result_storage=ResultStorage(
216216
tool_results_history=event_data["resultStorage"]

0 commit comments

Comments
 (0)