Skip to content

Commit

Permalink
fix NoneType exception on converted_value
Browse files Browse the repository at this point in the history
  • Loading branch information
Rdornier committed Jan 8, 2025
1 parent fb316a7 commit 6cf8929
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion omero_figure/omeroutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def get_timestamps(conn, image):
except Exception as error:
print(f"An exception occured: {error}\n"
"maybe the image has no 'timeIncrement' set")
if converted_value != 0:
if converted_value != 0 and converted_value is not None:
for i in range(image.getSizeT()):
timemap[i] = i*converted_value

Expand Down

0 comments on commit 6cf8929

Please sign in to comment.