From e474631275fdb0927d2ffc494adc887f8fe3d724 Mon Sep 17 00:00:00 2001 From: Jo Pol Date: Tue, 9 Jan 2024 15:11:49 +0100 Subject: [PATCH] Update src/datastation/dataverse/datasets.py Co-authored-by: Jan van Mansum --- src/datastation/dataverse/datasets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/datastation/dataverse/datasets.py b/src/datastation/dataverse/datasets.py index 8ec032d..e94c186 100644 --- a/src/datastation/dataverse/datasets.py +++ b/src/datastation/dataverse/datasets.py @@ -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]}") all_fields.append({'typeName': key, 'value': data[key]}) for key in compound_fields.keys(): compound_field = compound_fields[key]