From 2527d4b5999506eb156fbf3ffd07036e2184a803 Mon Sep 17 00:00:00 2001 From: Paurikova2 <107862249+Paurikova2@users.noreply.github.com> Date: Thu, 10 Oct 2024 11:50:20 +0200 Subject: [PATCH] non equals cond for group type list Co-authored-by: Jozef Misutka <332350+vidiecan@users.noreply.github.com> --- src/pump/_resourcepolicy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.'