From 95c8a10d8bd424ac40267bf9677c2a7d776c828b Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Mon, 23 Dec 2019 14:45:22 -0800 Subject: pubmed: null doi parsing check --- python/fatcat_tools/importers/pubmed.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python') diff --git a/python/fatcat_tools/importers/pubmed.py b/python/fatcat_tools/importers/pubmed.py index aeac43b5..64f5a024 100644 --- a/python/fatcat_tools/importers/pubmed.py +++ b/python/fatcat_tools/importers/pubmed.py @@ -376,7 +376,7 @@ class PubmedImporter(EntityImporter): identifiers = pubmed.ArticleIdList pmid = medline.PMID.string.strip() doi = identifiers.find("ArticleId", IdType="doi") - if doi: + if doi and doi.string: doi = doi.string.lower().strip() if doi.startswith('doi:'): doi = doi[4:] -- cgit v1.2.3