Skip to content
Snippets Groups Projects
Commit a0fd3339 authored by Niko Ehrenfeuchter's avatar Niko Ehrenfeuchter :keyboard:
Browse files

Fix broken syntax in try-except

parent 39a990f4
No related branches found
No related tags found
No related merge requests found
......@@ -76,7 +76,7 @@ def export(imp, filename, overwrite=False):
try:
unit = imp.calibration.unit
log.debug("Detected calibration unit: %s", unit)
except Error as err:
except Exception as err:
log.error("Unable to detect spatial unit: %s", err)
raise RuntimeError("Error detecting image calibration!")
if unit == 'pixel' and (suffix == 'ics' or suffix == 'ids'):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment