From 657f7e93b0923b7be3612ff03998e5280d688f51 Mon Sep 17 00:00:00 2001 From: Martin Czygan Date: Fri, 2 Apr 2021 22:37:59 +0200 Subject: datacite: a missing surname should be None, not the empty string refs sentry #77700 --- python/fatcat_tools/importers/datacite.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'python/fatcat_tools') diff --git a/python/fatcat_tools/importers/datacite.py b/python/fatcat_tools/importers/datacite.py index 70f8db86..221ac8f5 100644 --- a/python/fatcat_tools/importers/datacite.py +++ b/python/fatcat_tools/importers/datacite.py @@ -869,8 +869,7 @@ class DataciteImporter(EntityImporter): if given_name: given_name = clean(given_name) - if surname: - surname = clean(surname) + surname = clean(surname) # Perform a final assertion that name does not reduce to zero # (e.g. whitespace only name). -- cgit v1.2.3