summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Czygan <martin.czygan@gmail.com>2020-01-31 01:45:25 +0100
committerMartin Czygan <martin.czygan@gmail.com>2020-01-31 01:45:25 +0100
commit4c9208fa61ee8eeaebddd65f641926b540818342 (patch)
tree2ad300c922131bfb01f4cd414541408b6388e9d8
parenta42206d2603e28f1311ac3873dc168c78eabffee (diff)
downloadfatcat-4c9208fa61ee8eeaebddd65f641926b540818342.tar.gz
fatcat-4c9208fa61ee8eeaebddd65f641926b540818342.zip
datacite: name shall not be None
-rw-r--r--python/fatcat_tools/importers/datacite.py2
1 files changed, 1 insertions, 1 deletions
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: