diff --git a/src/pump/_resourcepolicy.py b/src/pump/_resourcepolicy.py index 54715f7..a91f88c 100644 --- a/src/pump/_resourcepolicy.py +++ b/src/pump/_resourcepolicy.py @@ -116,7 +116,7 @@ def import_to(self, env, dspace, repo): if group in group_types and group_types[group] == target_type ] - if len(group_type_list) > 1: + if len(group_type_list) != 1: raise RuntimeError( f'Unexpected size of filtered groups for group [{eg_id}] ' f'of type [{target_type}]: {len(group_type_list)}. Expected size: 1.'