From 4c9208fa61ee8eeaebddd65f641926b540818342 Mon Sep 17 00:00:00 2001 From: Martin Czygan Date: Fri, 31 Jan 2020 01:45:25 +0100 Subject: datacite: name shall not be None --- python/fatcat_tools/importers/datacite.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python/fatcat_tools') diff --git a/python/fatcat_tools/importers/datacite.py b/python/fatcat_tools/importers/datacite.py index b060a18e..20fc399c 100644 --- a/python/fatcat_tools/importers/datacite.py +++ b/python/fatcat_tools/importers/datacite.py @@ -737,7 +737,7 @@ class DataciteImporter(EntityImporter): if not any((name, given_name, surname)): continue if not name: - name = "{} {}".format(given_name, surname).strip() + name = "{} {}".format(given_name or '', surname or '').strip() if name in name_blacklist: continue if name.lower() in UNKNOWN_MARKERS_LOWER: -- cgit v1.2.3