Skip to content

Commit 00fe8de

Browse files
committed
Eliminate unnecessary check
1 parent c1e02ee commit 00fe8de

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/mdio/converters/segy.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -329,10 +329,6 @@ def _chunk_variable(ds: Dataset, variable_name: str) -> None:
329329
if ds.variables[i].name == variable_name:
330330
idx = i
331331
break
332-
if idx == -1:
333-
# raise ValueError(f"Variable '{variable_name}' not found in dataset.")
334-
err = f"Variable '{variable_name}' not found in dataset."
335-
raise ValueError(err)
336332

337333
def determine_target_size(t: str) -> int:
338334
if t == "bool":

0 commit comments

Comments
 (0)