Skip to content

Commit cb7db2e

Browse files
authored
Merge pull request #145 from FEWS-NET/HEA-677/Key_error_'Fishing'_in_consolidated_fixture-asset
Add missing wild_foods_valid_instances in the consolidated_instances …
2 parents 2836ec3 + b6474bb commit cb7db2e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pipelines/assets/fixtures.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,9 +339,12 @@ def consolidated_fixture(
339339
if model_name != "WealthGroup"
340340
},
341341
}
342+
342343
# Add the wild foods and other cash income instances, if they are present
343344
for model_name, instances in {**other_cash_income_valid_instances, **wild_foods_valid_instances}.items():
344345
if instances and model_name != "WealthGroup":
346+
if model_name not in consolidated_instances:
347+
consolidated_instances[model_name] = []
345348
consolidated_instances[model_name] += instances
346349

347350
fixture, metadata = get_fixture_from_instances(consolidated_instances)

0 commit comments

Comments
 (0)