Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
python-imcflibs
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
imcf
python-imcflibs
Commits
a0fd3339
Commit
a0fd3339
authored
6 years ago
by
Niko Ehrenfeuchter
Browse files
Options
Downloads
Patches
Plain Diff
Fix broken syntax in try-except
parent
39a990f4
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/imcflibs/imagej/bioformats.py
+1
-1
1 addition, 1 deletion
src/imcflibs/imagej/bioformats.py
with
1 addition
and
1 deletion
src/imcflibs/imagej/bioformats.py
+
1
−
1
View file @
a0fd3339
...
...
@@ -76,7 +76,7 @@ def export(imp, filename, overwrite=False):
try
:
unit
=
imp
.
calibration
.
unit
log
.
debug
(
"
Detected calibration unit: %s
"
,
unit
)
except
E
rror
as
err
:
except
E
xception
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
'
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment