aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-05-21 18:48:10 -0700
committerBryan Newbold <bnewbold@robocracy.org>2019-05-21 18:48:10 -0700
commita67c8e65f4892899df3368ac7ea3abaee176fb3a (patch)
tree7f1075226a79e0e9b18bba53f21a7104cf5ea370
parent1df0cd9cfe96609ff276362d10a5e50b723bbb7b (diff)
downloadfatcat-a67c8e65f4892899df3368ac7ea3abaee176fb3a.tar.gz
fatcat-a67c8e65f4892899df3368ac7ea3abaee176fb3a.zip
handle bad JALC DOIs
-rw-r--r--python/fatcat_tools/importers/jalc.py4
1 files changed, 3 insertions, 1 deletions
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")