Using only country in nomenclature config breaks CodeList
phackstock opened this issue · comments
I saw this in https://github.com/iiasa/openmod4africa-workflow, where the latest nomenclature update in combination with a nomenclature config where in the region dimension there's only the country attribute:
repositories:
openENTRANCE:
url: https://github.com/openENTRANCE/openentrance
definitions:
variable:
repository: openENTRANCE
region:
country: true
It broke in the test here: https://github.com/iiasa/openmod4africa-workflow/actions/runs/7829213013/job/21360733654.
Issue is that
nomenclature/nomenclature/codelist.py
Line 622 in 86d38f9
attempts to iterate over the region.repositories attribute which is empty.
Same just happened at openENTRANCE/openentrance#326, which doesn’t even have a nomenclature.config file…?
Just commented on openENTRANCE/openentrance#326. The issue is a different one, came with the same PR though.