From 6cf89299cb02028fc0fa2f5ee20f9ada1b1c51c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9my=20Dornier?= Date: Wed, 8 Jan 2025 17:10:09 +0100 Subject: [PATCH] fix NoneType exception on converted_value --- omero_figure/omeroutils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/omero_figure/omeroutils.py b/omero_figure/omeroutils.py index a37041d2e..056c67f71 100644 --- a/omero_figure/omeroutils.py +++ b/omero_figure/omeroutils.py @@ -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