Skip to content
Snippets Groups Projects

eossr upload unique function

Merged Vuillaume requested to merge eossr_upload into master
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -87,7 +87,7 @@ def upload(zenodo_token, sandbox_flag, upload_directory, zip_root_dir=False, rec
# Searches for similar records
similar_records = find_similar_records(zenodo, record)
if similar_records and not force_new_record:
if similar_records and not force_new_record and not record_id:
raise SimilarRecordError(
f"There are similar records in your own records: {similar_records}."
"If you want to update an existing record, provide its record id to make a new version."
Loading