Commit ae63bb07 authored by Istvan N. Huszar, MD's avatar Istvan N. Huszar, MD
Browse files

Fixed bad exception type.

parent 5490c4f4
......@@ -2051,7 +2051,7 @@ def match_volume_resolution(img, **kwargs):
import imageio
try:
ext = imageio.formats[ext].extensions[0].lstrip(".")
except IndexError:
except KeyError, IndexError:
ext = ts.TIMAGE_DEFAULT_SNAPSHOT_EXT
filename = os.path.join(p.general.outputdir, f"{fn}_mrires.{ext}")
img.snapshot(filename, overwrite=True)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment