Skip to content
Snippets Groups Projects
Commit dc87d677 authored by Alán Muñoz's avatar Alán Muñoz
Browse files

add empty dataset exception

parent d9f610ea
No related branches found
No related tags found
No related merge requests found
...@@ -63,6 +63,8 @@ class Dataset(Argo): ...@@ -63,6 +63,8 @@ class Dataset(Argo):
for x in self.dataset.listAnnotations() for x in self.dataset.listAnnotations()
if isinstance(x, omero.gateway.FileAnnotationWrapper) if isinstance(x, omero.gateway.FileAnnotationWrapper)
} }
if not len(self._files):
raise Exception("Exception:Metadata: Experiment has no annotation files.")
return self._files return self._files
@property @property
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment