Skip to content

Commit

Permalink
Merge pull request #607 from Rdornier/fix-timeincrement-None
Browse files Browse the repository at this point in the history
fix NoneType exception on timeincrement
  • Loading branch information
will-moore authored Jan 9, 2025
2 parents fb316a7 + 6cf8929 commit adc1ab5
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 adc1ab5

Please sign in to comment.