summaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-05-22 12:58:17 -0700
committerBryan Newbold <bnewbold@robocracy.org>2019-05-22 12:58:17 -0700
commit0806decd3f8ae63c6fccd25d4c0d3a3df7ab5c8c (patch)
tree6885d0fa3ed85d0f787f16aca14e46797bcc817b /python
parentb030e52c52ea16bad1a8986a19afbc7fc7bb1507 (diff)
downloadfatcat-0806decd3f8ae63c6fccd25d4c0d3a3df7ab5c8c.tar.gz
fatcat-0806decd3f8ae63c6fccd25d4c0d3a3df7ab5c8c.zip
jalc empty publisher string
Diffstat (limited to 'python')
-rw-r--r--python/fatcat_tools/importers/jalc.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/fatcat_tools/importers/jalc.py b/python/fatcat_tools/importers/jalc.py
index fa3c108d..d560686f 100644
--- a/python/fatcat_tools/importers/jalc.py
+++ b/python/fatcat_tools/importers/jalc.py
@@ -207,7 +207,7 @@ class JalcImporter(EntityImporter):
container_extra = dict()
if record.publicationName:
- pubs = [p.string.strip() for p in record.find_all("publicationName")]
+ pubs = [p.string.strip() for p in record.find_all("publicationName") if p.string]
pubs = [clean(p) for p in pubs if p]
assert(pubs)
if len(pubs) > 1 and pubs[0] == pubs[1]:
@@ -220,7 +220,7 @@ class JalcImporter(EntityImporter):
container_extra['original_name'] = clean(pubs[1])
if record.publisher:
- pubs = [p.string.strip() for p in record.find_all("publisher")]
+ pubs = [p.string.strip() for p in record.find_all("publisher") if p.string]
pubs = [p for p in pubs if p]
if len(pubs) > 1 and pubs[0] == pubs[1]:
pubs = [pubs[0]]