Skip to content

Commit

Permalink
Do not show full error message for missing weights (#330)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielhuppmann authored Mar 6, 2024
1 parent ac8b91f commit 346b17f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions nomenclature/processor/region.py
Original file line number Diff line number Diff line change
Expand Up @@ -735,10 +735,7 @@ def _aggregate_region(df, var, *regions, **kwargs):
except ValueError as error:
if str(error).startswith("Missing weights for the following data"):
logger.info(
(
f"Could not aggregate '{var}' for region '{regions[0]}' "
f"({kwargs})\n{error}"
)
f"Could not aggregate '{var}' for region '{regions[0]}' ({kwargs})"
)
else:
raise error
Expand Down

0 comments on commit 346b17f

Please sign in to comment.