We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2739d1e commit 2b02aceCopy full SHA for 2b02ace
ckanext/fairdatapoint/harvesters/domain/identifier.py
@@ -30,9 +30,9 @@ def get_id_value(self) -> str:
30
def get_part(self, index: int) -> str:
31
key_values = self.guid.split(SEPARATOR)
32
33
- if not key_values:
+ if not self.guid.strip() or key_values == ['']:
34
raise IdentifierException(
35
- f"Unexpected number of parts in record identifier [{self.guid}]: [{len(key_values)}]"
+ f"Empty or improperly formatted record identifier: [{self.guid}]"
36
)
37
38
key_value = key_values[-1].split(KEY_VALUE_SEPARATOR, 1)
0 commit comments