Skip to content

Commit

Permalink
Update src/datastation/dataverse/datasets.py
Browse files Browse the repository at this point in the history
Co-authored-by: Jan van Mansum <[email protected]>
  • Loading branch information
jo-pol and janvanmansum authored Jan 9, 2024
1 parent 25a063c commit e474631
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/datastation/dataverse/datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def update_metadata(self, data: dict, replace: bool = False):
all_fields.append({'typeName': key, 'value': (json.loads(data[key]))})
else:
if not replace: # would cause a bad request
raise Exception(f"not repetitive fields must be replaced: {key}={data[key]}")
raise Exception(f"Single value fields must be replaced: {key}={data[key]}")

Check warning on line 40 in src/datastation/dataverse/datasets.py

View check run for this annotation

Codecov / codecov/patch

src/datastation/dataverse/datasets.py#L40

Added line #L40 was not covered by tests
all_fields.append({'typeName': key, 'value': data[key]})
for key in compound_fields.keys():
compound_field = compound_fields[key]
Expand Down

0 comments on commit e474631

Please sign in to comment.