Skip to content

Commit 68deabd

Browse files
committed
Raise exception if no matching files found.
1 parent 02ae698 commit 68deabd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cubids/cubids.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1016,6 +1016,8 @@ def get_param_groups_from_entity_set(self, entity_set):
10161016
matching_files = self.layout.get(
10171017
return_type="file", scope="self", regex_search=True, **key_entities
10181018
)
1019+
if not matching_files:
1020+
raise Exception(f"No files found for entity set: {key_entities}")
10191021

10201022
# ensure files who's entities contain key_entities but include other
10211023
# entities do not also get added to matching_files

0 commit comments

Comments
 (0)