diff options
Diffstat (limited to 'python/fatcat_tools')
-rw-r--r-- | python/fatcat_tools/importers/pubmed.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/python/fatcat_tools/importers/pubmed.py b/python/fatcat_tools/importers/pubmed.py index b33bbf13..e5d413a7 100644 --- a/python/fatcat_tools/importers/pubmed.py +++ b/python/fatcat_tools/importers/pubmed.py @@ -380,7 +380,9 @@ class PubmedImporter(EntityImporter): doi = doi.string.lower() if doi.startswith('doi:'): doi = doi[4:] - assert doi.startswith('10.') + if not (doi.startswith('10.') and '/' in doi and doi.split('/')[1]): + sys.stderr.write("BOGUS DOI: {}\n".format(doi)) + doi = None pmcid = identifiers.find("ArticleId", IdType="pmc") if pmcid: |