Skip to content

Commit

Permalink
More informative error message when imported inventories not found
Browse files Browse the repository at this point in the history
  • Loading branch information
romainsacchi committed Mar 15, 2024
1 parent 70f512b commit 19b022e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions premise/external_data_validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,8 @@ def check_inventories(

raise AssertionError(
f"The following datasets are not in the inventory data: {list_missing_datasets}"
f"\n Available datasets are: \n"
f"{[list_datasets]}"
) from e

# flag imported inventories
Expand Down

0 comments on commit 19b022e

Please sign in to comment.