diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2019-05-29 18:25:23 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2019-05-29 18:25:23 -0700 |
commit | 7c5ad2cb877c193d6fc6b638d220f15d3c921973 (patch) | |
tree | c0101498e2855350826d284b3bf044bfe5408473 /python/fatcat_tools/importers | |
parent | d00ef414342e3f3862f1a5d00d6c08e1254cbe5b (diff) | |
download | fatcat-7c5ad2cb877c193d6fc6b638d220f15d3c921973.tar.gz fatcat-7c5ad2cb877c193d6fc6b638d220f15d3c921973.zip |
handle pubmed CollectiveName null-ness
Diffstat (limited to 'python/fatcat_tools/importers')
-rw-r--r-- | python/fatcat_tools/importers/pubmed.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/fatcat_tools/importers/pubmed.py b/python/fatcat_tools/importers/pubmed.py index 9a9849ed..0fc10e84 100644 --- a/python/fatcat_tools/importers/pubmed.py +++ b/python/fatcat_tools/importers/pubmed.py @@ -581,7 +581,7 @@ class PubmedImporter(EntityImporter): raw_name = "{} {}".format(given_name, surname) elif surname: raw_name = surname - if not raw_name and author.CollectiveName.string: + if not raw_name and author.CollectiveName and author.CollectiveName.string: raw_name = author.CollectiveName.string contrib_extra = dict() orcid = author.find("Identifier", Source="ORCID") |