diff options
-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 6769055..ba88d07 100644 --- a/fatcat_scholar/issue_db.py +++ b/fatcat_scholar/issue_db.py @@ -286,6 +286,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"] # pub_collection = [c for c in meta['collection'] if c.startswith("pub_")][0] |