summaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-05-21 17:34:34 -0700
committerBryan Newbold <bnewbold@robocracy.org>2019-05-21 17:34:34 -0700
commitbf07be0e0501d15fb9b31dbf696f95c56b16f4f1 (patch)
tree6f27b4682a7240b5a9c6bf25841aad1dfb2bbd0d /python
parent76d9a8437a895860ca22f771ded73b5a18ba31e5 (diff)
downloadfatcat-bf07be0e0501d15fb9b31dbf696f95c56b16f4f1.tar.gz
fatcat-bf07be0e0501d15fb9b31dbf696f95c56b16f4f1.zip
JALC importer: handle missing titles
Diffstat (limited to 'python')
-rw-r--r--python/fatcat_tools/importers/jalc.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/python/fatcat_tools/importers/jalc.py b/python/fatcat_tools/importers/jalc.py
index 0a6a69bf..2b019b3d 100644
--- a/python/fatcat_tools/importers/jalc.py
+++ b/python/fatcat_tools/importers/jalc.py
@@ -76,6 +76,8 @@ class JalcImporter(EntityImporter):
extra_jalc = dict()
titles = record.find_all("title")
+ if not titles:
+ return None
title = titles[0].string.strip()
original_title = None
if title.endswith('.'):