Skip to content

Commit

Permalink
fix(wip): Working on migration problems
Browse files Browse the repository at this point in the history
  • Loading branch information
monotasker committed Oct 30, 2024
1 parent db69378 commit ad9f923
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion invenio_record_importer_kcworks/services/communities.py
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,10 @@ def add_record_to_group_collections(
try:
assert len(coll_records) == 1
except AssertionError as e:
if len(coll_records) > 1:
if (
len(coll_records) > 1
and not metadata_record["is_published"]
):
raise MultipleActiveCollectionsError(
f" multiple active collections found "
f"for {group_id}"
Expand Down

0 comments on commit ad9f923

Please sign in to comment.