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
No related branches found
No related tags found
1 merge request!36new image and hdf5 support
Pipeline #60524 passed
......@@ -116,7 +116,7 @@ def open_file(filename):
img = check_gray(img)
return img if img.ndim == 2 else to_bob(img)
else:
raise RuntimeError(f"Unknown file extension: {extension}")
raise ValueError(f"Unknown file extension: {extension}")
def write_file(filename, data, format="pillow"):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment