Skip to content

Commit 1a5213a

Browse files
author
David Stirling
authored
Prevent early crash when image files are missing (#84)
1 parent 6b1f04a commit 1a5213a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

cellprofiler_core/setting/_image_plane.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,10 @@ def build(url, series=None, index=None, channel=None):
5555
)
5656

5757
def __get_field(self, index):
58-
f = self.value_text.split(" ")[index]
58+
split = self.value_text.split(" ")
59+
if index >= len(split):
60+
return None
61+
f = split[index]
5962
if len(f) == 0:
6063
return None
6164
return f

0 commit comments

Comments
 (0)