Skip to content

Commit

Permalink
chore: minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lubojr committed Jul 4, 2024
1 parent 827ecaa commit c1cbc75
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions generators/generate_indicators.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,11 +229,10 @@ def process_collection_file(config, file_path, catalog):
handle_collection_only(config, resource, data, catalog)
else:
raise ValueError("Type of Resource is not supported")
elif resource.get("Name") == "GeoJSON source" or resource.get("Name") == "COG source":
handle_raw_source(config, resource, data, catalog)
else:
if resource["Name"] == "GeoJSON source" or resource["Name"] == "COG source":
handle_raw_source(config, resource, data, catalog)
else:
raise ValueError("Type of Resource is not supported")
raise ValueError("Type of Resource is not supported")

elif "Subcollections" in data:
# if no endpoint is specified we check for definition of subcollections
Expand Down

0 comments on commit c1cbc75

Please sign in to comment.