Skip to content

Commit f537b3d

Browse files
committed
Update cubids.py
1 parent 5c2d120 commit f537b3d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cubids/cubids.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1061,8 +1061,10 @@ def get_param_groups_from_entity_set(self, entity_set):
10611061
matching_files = self.layout.get(
10621062
return_type="file", scope="self", regex_search=True, **key_entities
10631063
)
1064+
if not matching_files:
1065+
raise Exception(f"No files found for entity set: {entity_set}")
10641066

1065-
# ensure files who's entities contain key_entities but include other
1067+
# ensure files whose entities contain key_entities but include other
10661068
# entities do not also get added to matching_files
10671069
to_include = []
10681070
for filepath in matching_files:

0 commit comments

Comments
 (0)