diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2019-01-28 16:17:42 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2019-01-28 16:17:42 -0800 |
commit | e23d62ed0fd65c5cde1d367569bee4f995b38571 (patch) | |
tree | 7114846cd206eb8ba7208e1daeab8ac0ff4eb172 /python | |
parent | 4137d2e8303999dedca404c2a369e7a8b6daf6ca (diff) | |
download | fatcat-e23d62ed0fd65c5cde1d367569bee4f995b38571.tar.gz fatcat-e23d62ed0fd65c5cde1d367569bee4f995b38571.zip |
make ORCID importer skip no-names, not assert
Diffstat (limited to 'python')
-rw-r--r-- | python/fatcat_tools/importers/orcid.py | 3 |
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')) |