aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-01-28 16:44:33 -0800
committerBryan Newbold <bnewbold@robocracy.org>2019-01-28 16:44:33 -0800
commit3fd25b04d1548786462520ffb8bfdb46389b7655 (patch)
treef65bc3518c5a50a66207f8c20605532da3d03689
parente23d62ed0fd65c5cde1d367569bee4f995b38571 (diff)
downloadfatcat-3fd25b04d1548786462520ffb8bfdb46389b7655.tar.gz
fatcat-3fd25b04d1548786462520ffb8bfdb46389b7655.zip
drop creators with no display name at all
-rw-r--r--python/fatcat_tools/importers/orcid.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/python/fatcat_tools/importers/orcid.py b/python/fatcat_tools/importers/orcid.py
index e64cdcc2..a055801b 100644
--- a/python/fatcat_tools/importers/orcid.py
+++ b/python/fatcat_tools/importers/orcid.py
@@ -55,9 +55,9 @@ class OrcidImporter(EntityImporter):
display = sur
elif given:
display = given
- else:
- # must have *some* name
- return None
+ if not display:
+ # must have *some* name
+ return None
orcid = obj['orcid-identifier']['path']
if not self.is_orcid(orcid):
sys.stderr.write("Bad ORCID: {}\n".format(orcid))