Skip to content
Snippets Groups Projects
Commit 20a98996 authored by Tiago de Freitas Pereira's avatar Tiago de Freitas Pereira
Browse files

Fixed wrong exception

parent ae08a548
Branches
Tags v0.1.1
1 merge request!36new image and hdf5 support
Pipeline #60524 passed
...@@ -116,7 +116,7 @@ def open_file(filename): ...@@ -116,7 +116,7 @@ def open_file(filename):
img = check_gray(img) img = check_gray(img)
return img if img.ndim == 2 else to_bob(img) return img if img.ndim == 2 else to_bob(img)
else: else:
raise RuntimeError(f"Unknown file extension: {extension}") raise ValueError(f"Unknown file extension: {extension}")
def write_file(filename, data, format="pillow"): def write_file(filename, data, format="pillow"):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment