From a67c8e65f4892899df3368ac7ea3abaee176fb3a Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Tue, 21 May 2019 18:48:10 -0700 Subject: handle bad JALC DOIs --- python/fatcat_tools/importers/jalc.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/python/fatcat_tools/importers/jalc.py b/python/fatcat_tools/importers/jalc.py index 8f8d1f66..5ec2f139 100644 --- a/python/fatcat_tools/importers/jalc.py +++ b/python/fatcat_tools/importers/jalc.py @@ -90,7 +90,9 @@ class JalcImporter(EntityImporter): doi = None if record.doi: doi = record.doi.string.lower().strip() - assert doi.startswith('10.') + if not doi.startswith('10.'): + sys.stderr.write("bogus JALC DOI: {}\n".format(doi)) + doi = None contribs = [] people = record.find_all("Person") -- cgit v1.2.3