diff options
Diffstat (limited to 'fatcat_scholar/schema.py')
-rw-r--r-- | fatcat_scholar/schema.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fatcat_scholar/schema.py b/fatcat_scholar/schema.py index 2ee7d54..19f148b 100644 --- a/fatcat_scholar/schema.py +++ b/fatcat_scholar/schema.py @@ -314,6 +314,9 @@ def es_biblio_from_release(release: ReleaseEntity) -> ScholarBiblio: first_page_int: Optional[int] = None if first_page and first_page.isdigit(): first_page_int = int(first_page) + # catch metadata errors which result in ES indexing errors + if abs(first_page_int) > 1000000: + first_page_int = None ret = ScholarBiblio( release_ident=release.ident, |