From 7b1e4428d24519a20a60b660b0b8a55b224fe022 Mon Sep 17 00:00:00 2001 From: Lubomir Dolezal Date: Sat, 28 Oct 2023 17:24:46 +0200 Subject: [PATCH] fix: type --- generators/generate_indicators.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generators/generate_indicators.py b/generators/generate_indicators.py index 4a5b7b97..0766e235 100644 --- a/generators/generate_indicators.py +++ b/generators/generate_indicators.py @@ -471,7 +471,7 @@ def add_example_info(stac_object, data, endpoint, config): ) elif "Resources" in data: for service in data["Resources"]: - if service["Name"] == "xcube": + if service.get("Name") == "xcube": target_url = "%s/timeseries/%s/%s?aggMethods=median"%( endpoint["EndPoint"], endpoint["DatacubeId"],