Skip to content

Commit

Permalink
better error in mfcsv
Browse files Browse the repository at this point in the history
  • Loading branch information
savente93 committed Aug 24, 2023
1 parent f9ef110 commit fc8c1c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hydromt/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ def open_mfcsv(
df[concat_dim] = id

if not df.index.dtype == first_index.dtype:
raise RuntimeError(
raise ValueError(
f"file {fn} has inconsistent index type: {df.index.dtype()}"
f"Expected {first_index.dtype()}"
)
Expand Down

0 comments on commit fc8c1c4

Please sign in to comment.