Skip to content

Commit

Permalink
fix: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
lubojr committed Apr 9, 2024
1 parent 5d07275 commit c2623e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions generators/generate_indicators.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,9 @@ def process_catalog_file(file_path, options):
# if collection file exists process it as indicator
# collection will be added as single collection to indicator
process_indicator_file(config, file_path, catalog)
elif file_path := os.path.isfile("../indicators/%s.yaml"%(collection)):
elif os.path.isfile("../indicators/%s.yaml"%(collection)):
# if not try to see if indicator definition available
process_indicator_file(config, file_path, catalog)
process_indicator_file(config, "../indicators/%s.yaml"%(collection), catalog)
else:
raise Exception(
f'File {collection} in catalog {config["id"]} does not exist in collections or indicators, exiting'
Expand Down

0 comments on commit c2623e3

Please sign in to comment.