Skip to content

Commit cc96c9e

Browse files
committed
Raise exception properly
1 parent f63cda8 commit cc96c9e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

schimpy/schism_hotstart.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1313,7 +1313,7 @@ def interp_from_mesh(
13131313
same_points = np.where(dist <= dist_th)[0]
13141314
diff_points = np.where(dist > dist_th)[0]
13151315
if self.mesh.n_vert_levels != mesh1.n_vert_levels:
1316-
raise (
1316+
raise Exception(
13171317
"distance threshold should only be defined when the two grids have the same vertical layer numbers"
13181318
)
13191319
# vin is array for variable from hotstart file

0 commit comments

Comments
 (0)