Skip to content

Commit

Permalink
Make nuts validation error explicit
Browse files Browse the repository at this point in the history
  • Loading branch information
dc-almeida committed Sep 19, 2024
1 parent e6aad92 commit 823c0ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nomenclature/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def check_nuts(
if v and not all(k in ["nuts-1", "nuts-2", "nuts-3"] for k in v.keys()):
raise ValueError(
"Invalid fields for `nuts` in configuration. "
"NUTS level must be 1, 2 and/or 3."
"Allowed values are: 'nuts-1', 'nuts-2' and 'nuts-3'."
)
return v

Expand Down

0 comments on commit 823c0ed

Please sign in to comment.