Skip to content

Commit

Permalink
non equals cond for group type list
Browse files Browse the repository at this point in the history
Co-authored-by: Jozef Misutka <[email protected]>
  • Loading branch information
Paurikova2 and vidiecan authored Oct 10, 2024
1 parent b850dcc commit 2527d4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pump/_resourcepolicy.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.'
Expand Down

0 comments on commit 2527d4b

Please sign in to comment.