diff options
author | Martin Czygan <martin.czygan@gmail.com> | 2020-01-31 01:45:25 +0100 |
---|---|---|
committer | Martin Czygan <martin.czygan@gmail.com> | 2020-01-31 01:45:25 +0100 |
commit | 4c9208fa61ee8eeaebddd65f641926b540818342 (patch) | |
tree | 2ad300c922131bfb01f4cd414541408b6388e9d8 /python | |
parent | a42206d2603e28f1311ac3873dc168c78eabffee (diff) | |
download | fatcat-4c9208fa61ee8eeaebddd65f641926b540818342.tar.gz fatcat-4c9208fa61ee8eeaebddd65f641926b540818342.zip |
datacite: name shall not be None
Diffstat (limited to 'python')
-rw-r--r-- | python/fatcat_tools/importers/datacite.py | 2 |
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: |