Skip to content

Commit

Permalink
Fix errors handling in to_rect
Browse files Browse the repository at this point in the history
  • Loading branch information
stefraynaud committed Jun 24, 2024
1 parent 520b286 commit 6dee701
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xoa/grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,7 @@ def to_rect(da, tol=1e-5, errors="warn"):
"Cannot convert to curvilinear to rectangular grid since since coordinate "
f"'{name}' is not constant along one of its dimensions"
)
if errors == "errors":
if errors == "raise":
raise XoaError(msg)
elif errors == "ignore":
xoa_warn(msg)
Expand Down

0 comments on commit 6dee701

Please sign in to comment.