summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-01-29 17:43:19 -0800
committerBryan Newbold <bnewbold@robocracy.org>2019-01-29 17:43:19 -0800
commit3508fc4a78769eb6d118cd71805b96bc08856111 (patch)
treedb46f88612f3c60d15df94af1e2302d65a31957d
parent586458cacabd1d2f4feb0d0f1a9558f229f48f5e (diff)
downloadfatcat-3508fc4a78769eb6d118cd71805b96bc08856111.tar.gz
fatcat-3508fc4a78769eb6d118cd71805b96bc08856111.zip
fix null name for container (required)
-rw-r--r--python/fatcat_tools/importers/journal_metadata.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/python/fatcat_tools/importers/journal_metadata.py b/python/fatcat_tools/importers/journal_metadata.py
index 57e5ed73..75ee34d8 100644
--- a/python/fatcat_tools/importers/journal_metadata.py
+++ b/python/fatcat_tools/importers/journal_metadata.py
@@ -89,10 +89,14 @@ class JournalMetadataImporter(EntityImporter):
if extra_ia:
extra['ia'] = extra_ia
+ name = clean(row.get('name'))
+ if not name:
+ return None
+
ce = fatcat_client.ContainerEntity(
issnl=row['issnl'],
container_type=None, # TODO
- name=clean(row.get('name')),
+ name=name,
publisher=clean(row.get('publisher')),
wikidata_qid=None, # TODO
extra=extra)