summaryrefslogtreecommitdiffstats
path: root/python/fatcat_tools
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-01-28 16:17:42 -0800
committerBryan Newbold <bnewbold@robocracy.org>2019-01-28 16:17:42 -0800
commite23d62ed0fd65c5cde1d367569bee4f995b38571 (patch)
tree7114846cd206eb8ba7208e1daeab8ac0ff4eb172 /python/fatcat_tools
parent4137d2e8303999dedca404c2a369e7a8b6daf6ca (diff)
downloadfatcat-e23d62ed0fd65c5cde1d367569bee4f995b38571.tar.gz
fatcat-e23d62ed0fd65c5cde1d367569bee4f995b38571.zip
make ORCID importer skip no-names, not assert
Diffstat (limited to 'python/fatcat_tools')
-rw-r--r--python/fatcat_tools/importers/orcid.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/python/fatcat_tools/importers/orcid.py b/python/fatcat_tools/importers/orcid.py
index 02c9bf00..e64cdcc2 100644
--- a/python/fatcat_tools/importers/orcid.py
+++ b/python/fatcat_tools/importers/orcid.py
@@ -41,7 +41,8 @@ class OrcidImporter(EntityImporter):
returns a CreatorEntity
"""
name = obj['person']['name']
- assert name
+ if not name:
+ return None
extra = None
given = value_or_none(name.get('given-names'))
sur = value_or_none(name.get('family-name'))