Skip to content

Commit fac23ad

Browse files
fix test after merging from main
Signed-off-by: Jerry Guo <Jerry.Jinfeng.Guo@alliander.com>
1 parent 15c24a6 commit fac23ad

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/power_grid_model_io/converters/tabular_converter.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -570,8 +570,7 @@ def _parse_col_def_column_name(
570570
columns_str = " and ".join(f"'{col_name}'" for col_name in columns)
571571
raise KeyError(f"Could not find column {columns_str} on table '{table}'") from e
572572

573-
columns_str = " and ".join(f"'{col_name}'" for col_name in columns)
574-
raise KeyError(f"Could not find column {columns_str} on table '{table}'")
573+
return self._parse_col_def_const(data=data, table=table, col_def=const_value, table_mask=table_mask)
575574

576575
def _apply_multiplier(self, table: str, column: str, data: pd.Series) -> pd.Series:
577576
if self._multipliers is None:

0 commit comments

Comments
 (0)