diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2019-05-21 17:34:34 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2019-05-21 17:34:34 -0700 |
commit | bf07be0e0501d15fb9b31dbf696f95c56b16f4f1 (patch) | |
tree | 6f27b4682a7240b5a9c6bf25841aad1dfb2bbd0d | |
parent | 76d9a8437a895860ca22f771ded73b5a18ba31e5 (diff) | |
download | fatcat-bf07be0e0501d15fb9b31dbf696f95c56b16f4f1.tar.gz fatcat-bf07be0e0501d15fb9b31dbf696f95c56b16f4f1.zip |
JALC importer: handle missing titles
-rw-r--r-- | python/fatcat_tools/importers/jalc.py | 2 |
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('.'): |