diff options
author | Bryan Newbold <bnewbold@archive.org> | 2020-07-01 15:04:08 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@archive.org> | 2020-07-01 15:04:08 -0700 |
commit | 2dea232afd02dc49ccbf114ab7fa1edf1b69e92d (patch) | |
tree | ec94a64c00e1d50be3908fdbc4fb728146e3308c /fatcat_scholar/issue_db.py | |
parent | 05ac0a38efb60e412cce3b81bbbc5662a5e60f6e (diff) | |
download | fatcat-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.py | 2 |
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 |