Skip to content

Commit

Permalink
fix: type
Browse files Browse the repository at this point in the history
  • Loading branch information
lubojr committed Oct 28, 2023
1 parent 32dbb2c commit 7b1e442
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generators/generate_indicators.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
Expand Down

0 comments on commit 7b1e442

Please sign in to comment.