diff --git a/shared/workspaces/workspaces/capability/services/capability_info.py b/shared/workspaces/workspaces/capability/services/capability_info.py
index 322fa729bc6eeeee883c9514c47dc0052f5ce280..4161abf1c0116bdda34e1c1c78d3e8216a59ef68 100644
--- a/shared/workspaces/workspaces/capability/services/capability_info.py
+++ b/shared/workspaces/workspaces/capability/services/capability_info.py
@@ -272,7 +272,7 @@ class CapabilityInfo:
                 arguments["telescope"] if "telescope" in arguments else None,
                 arguments["casa_home"] if "casa_home" in arguments else None,
             )
-            if recipe:
+            if recipe and "recipe" in recipe["recipe"] and recipe["recipe"]:
                 # The recipe contains both the recipe and the CASA path to it
                 arguments["casa_home"] = recipe["path"]
                 arguments["casa_recipe"] = recipe["recipe"]