diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2019-01-29 17:43:19 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2019-01-29 17:43:19 -0800 |
commit | 3508fc4a78769eb6d118cd71805b96bc08856111 (patch) | |
tree | db46f88612f3c60d15df94af1e2302d65a31957d /python/fatcat_tools/importers | |
parent | 586458cacabd1d2f4feb0d0f1a9558f229f48f5e (diff) | |
download | fatcat-3508fc4a78769eb6d118cd71805b96bc08856111.tar.gz fatcat-3508fc4a78769eb6d118cd71805b96bc08856111.zip |
fix null name for container (required)
Diffstat (limited to 'python/fatcat_tools/importers')
-rw-r--r-- | python/fatcat_tools/importers/journal_metadata.py | 6 |
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) |