aboutsummaryrefslogtreecommitdiffstats
path: root/fatcat_scholar/issue_db.py
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2020-07-01 15:04:08 -0700
committerBryan Newbold <bnewbold@archive.org>2020-07-01 15:04:08 -0700
commit2dea232afd02dc49ccbf114ab7fa1edf1b69e92d (patch)
treeec94a64c00e1d50be3908fdbc4fb728146e3308c /fatcat_scholar/issue_db.py
parent05ac0a38efb60e412cce3b81bbbc5662a5e60f6e (diff)
downloadfatcat-scholar-2dea232afd02dc49ccbf114ab7fa1edf1b69e92d.tar.gz
fatcat-scholar-2dea232afd02dc49ccbf114ab7fa1edf1b69e92d.zip
skip partial/stub issue items
Diffstat (limited to 'fatcat_scholar/issue_db.py')
-rw-r--r--fatcat_scholar/issue_db.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/fatcat_scholar/issue_db.py b/fatcat_scholar/issue_db.py
index fed12a1..6769055 100644
--- a/fatcat_scholar/issue_db.py
+++ b/fatcat_scholar/issue_db.py
@@ -250,6 +250,8 @@ class IssueDB:
if not line:
continue
obj = json.loads(line)
+ if not "metadata" in obj:
+ continue
meta = obj["metadata"]
assert "periodicals" in meta["collection"]
container: Optional[fatcat_openapi_client.ContainerEntity] = None