Skip to content

Commit 9398103

Browse files
authored
Give a more informative error messages when containers crash (#283)
1 parent 8bce3a2 commit 9398103

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

active_plugins/runcellpose.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1000,6 +1000,8 @@ def run(self, workspace):
10001000
cellpose_output = numpy.load(os.path.join(temp_img_dir, unique_name + "_seg.npy"), allow_pickle=True).item()
10011001
y_data = cellpose_output["masks"]
10021002
flows = cellpose_output["flows"]
1003+
except FileNotFoundError:
1004+
raise(FileNotFoundError("I'm sorry, Cellpose seems to have crashed and I'm not sure why, since it's in its own container."))
10031005
finally:
10041006
# Delete the temporary files
10051007
try:

0 commit comments

Comments
 (0)