Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel Huppmann <[email protected]>
  • Loading branch information
phackstock and danielhuppmann authored Dec 19, 2024
1 parent df70e9a commit 51244d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nomenclature/codelist.py
Original file line number Diff line number Diff line change
Expand Up @@ -801,11 +801,11 @@ def check_directional_regions(cls, v: dict[str, RegionCode]):
if region.is_directional:
if region.origin not in v:
missing_regions.append(
f"Region '{region.origin}' not defined for '{region.name}'"
f"Origin '{region.origin}' not defined for '{region.name}'"
)
if region.destination not in v:
missing_regions.append(
f"Region '{region.destination}' not defined for '{region.name}'"
f"Destination '{region.destination}' not defined for '{region.name}'"
)
if missing_regions:
raise ValueError("\n".join(missing_regions))
Expand Down

0 comments on commit 51244d5

Please sign in to comment.