aboutsummaryrefslogtreecommitdiffstats
path: root/fatcat_scholar/issue_db.py
diff options
context:
space:
mode:
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