Skip to content

Commit

Permalink
Fix error message for missing cols in mapping df (#323)
Browse files Browse the repository at this point in the history
  • Loading branch information
FFroehlich authored Dec 2, 2024
1 parent a097ee9 commit 42602aa
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions petab/v1/mapping.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,7 @@ def get_mapping_df(

for col in MAPPING_DF_REQUIRED_COLS:
if col not in mapping_file.columns:
raise KeyError(
f"Mapping table missing mandatory field {PETAB_ENTITY_ID}."
)
raise KeyError(f"Mapping table missing mandatory field {col}.")

lint.assert_no_leading_trailing_whitespace(
mapping_file.reset_index()[col].values, col
Expand Down

0 comments on commit 42602aa

Please sign in to comment.