From e77678879203722bd511303ec27d73d847654722 Mon Sep 17 00:00:00 2001 From: Andrei Matveyeu Date: Fri, 6 Mar 2026 14:49:52 +0100 Subject: [PATCH] Fix KeyError on optional execute field in recipes_from_tests Change-Id: I95ba21531c6d3c9d6b479318a38b63538b2accf3 Signed-off-by: Andrei Matveyeu --- python/src/etos_api/routers/v1alpha/utilities.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/src/etos_api/routers/v1alpha/utilities.py b/python/src/etos_api/routers/v1alpha/utilities.py index 8709f19..0944542 100644 --- a/python/src/etos_api/routers/v1alpha/utilities.py +++ b/python/src/etos_api/routers/v1alpha/utilities.py @@ -160,7 +160,7 @@ async def recipes_from_tests(tests: list[dict]) -> list[dict]: }, { "key": "EXECUTE", - "value": test["execution"]["execute"], + "value": test["execution"].get("execute", []), }, { "key": "CHECKOUT",