Skip to content

Commit 389ca8b

Browse files
(#3148) Don't truncate deprecated datasets list
1 parent e382678 commit 389ca8b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

external_scripts/export/modules/CarbonPortal/Export_CarbonPortal_main.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def cp_upload(manifest, dataset, dataset_zip, raw_filenames):
8484
bypass_upload = False
8585

8686
if len(existing_datasets) > 1:
87-
raise CarbonPortalException(f'Dataset would deprecate multiple datasets {existing_datasets["dobj"]}')
87+
raise CarbonPortalException(f'Dataset would deprecate multiple datasets: {list(existing_datasets["dobj"])}')
8888
elif existing_datasets.empty:
8989
# Just to be explicit: We will upload the dataset and don't need to deprecate anything
9090
pass
@@ -139,6 +139,7 @@ def cp_upload(manifest, dataset, dataset_zip, raw_filenames):
139139

140140
upload_l0 = True
141141
previous_l0 = []
142+
142143
existing_hashsums = existing_l0.loc[existing_l0['fileName'] == basename]['hashSum'].values
143144
if hashsum in existing_hashsums:
144145
upload_l0 = False

0 commit comments

Comments
 (0)