summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-05-29 18:25:23 -0700
committerBryan Newbold <bnewbold@robocracy.org>2019-05-29 18:25:23 -0700
commit7c5ad2cb877c193d6fc6b638d220f15d3c921973 (patch)
treec0101498e2855350826d284b3bf044bfe5408473
parentd00ef414342e3f3862f1a5d00d6c08e1254cbe5b (diff)
downloadfatcat-7c5ad2cb877c193d6fc6b638d220f15d3c921973.tar.gz
fatcat-7c5ad2cb877c193d6fc6b638d220f15d3c921973.zip
handle pubmed CollectiveName null-ness
-rw-r--r--python/fatcat_tools/importers/pubmed.py2
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")