aboutsummaryrefslogtreecommitdiffstats
path: root/python/fatcat_tools
diff options
context:
space:
mode:
authorbnewbold <bnewbold@archive.org>2020-04-20 21:05:25 +0000
committerbnewbold <bnewbold@archive.org>2020-04-20 21:05:25 +0000
commit5576efabea5c3e5db1a8b57aef3dc4b4006dd46c (patch)
treeeff50e0d584546339910c591ea6c50d48d33922a /python/fatcat_tools
parenta134944ea6044d488af264e3845dad40536c61f4 (diff)
parent7c6febf20c84dd4f5778e1fb02369456f7dad344 (diff)
downloadfatcat-5576efabea5c3e5db1a8b57aef3dc4b4006dd46c.tar.gz
fatcat-5576efabea5c3e5db1a8b57aef3dc4b4006dd46c.zip
Merge branch 'martin-datacite-fix-release-contrib-raw-name-check-violation' into 'master'
datacite: fix a raw name constraint violation See merge request webgroup/fatcat!47
Diffstat (limited to 'python/fatcat_tools')
-rw-r--r--python/fatcat_tools/importers/datacite.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/python/fatcat_tools/importers/datacite.py b/python/fatcat_tools/importers/datacite.py
index 81f00876..244984f5 100644
--- a/python/fatcat_tools/importers/datacite.py
+++ b/python/fatcat_tools/importers/datacite.py
@@ -758,6 +758,14 @@ class DataciteImporter(EntityImporter):
given_name = clean(given_name)
if surname:
surname = clean(surname)
+
+ # Perform a final assertion that name does not reduce to zero
+ # (e.g. whitespace only name).
+ if name:
+ name = name.strip()
+ if not name:
+ continue
+
if raw_affiliation == '':
continue