Skip to content

Commit 6a1a0d4

Browse files
Sanitize input string
Fixes the issue of a trailing whitespace leading to the method crashing.
1 parent 6b6f88b commit 6a1a0d4

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/imcflibs/imagej/omerotools.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,11 @@ def parse_url(client, omero_str):
5757
>>> for wrapper in img_wrappers:
5858
>>> imp = wpr.toImagePlus(client)
5959
"""
60+
# Sanitize the string
61+
if omero_str is None:
62+
return []
63+
omero_str = omero_str.strip()
64+
6065
image_ids = []
6166
dataset_ids = []
6267
image_wpr_list = []

0 commit comments

Comments
 (0)