We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6a1a0d4 commit bec6f5aCopy full SHA for bec6f5a
1 file changed
src/imcflibs/imagej/omerotools.py
@@ -57,11 +57,12 @@ def parse_url(client, omero_str):
57
>>> for wrapper in img_wrappers:
58
>>> imp = wpr.toImagePlus(client)
59
"""
60
+ if omero_str is None or str(omero_str).strip() == "":
61
+ raise ValueError("No OMERO link or image ID provided.")
62
+
63
# Sanitize the string
- if omero_str is None:
- return []
64
omero_str = omero_str.strip()
-
65
66
image_ids = []
67
dataset_ids = []
68
image_wpr_list = []
0 commit comments