summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2020-06-29 22:02:43 -0700
committerBryan Newbold <bnewbold@archive.org>2020-06-29 22:02:43 -0700
commit3445b16cec387a478a9f0a0888510da302075cf4 (patch)
treeb597a201ee88ed876b33d0d913975e0e6b612790
parent4891e854a6e27075233a530e4782b1750c4e35dc (diff)
downloadfatcat-scholar-3445b16cec387a478a9f0a0888510da302075cf4.tar.gz
fatcat-scholar-3445b16cec387a478a9f0a0888510da302075cf4.zip
more conservative container_original_name
-rw-r--r--fatcat_scholar/schema.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/fatcat_scholar/schema.py b/fatcat_scholar/schema.py
index 725764e..2ee7d54 100644
--- a/fatcat_scholar/schema.py
+++ b/fatcat_scholar/schema.py
@@ -286,6 +286,8 @@ def es_biblio_from_release(release: ReleaseEntity) -> ScholarBiblio:
container_original_name = (
release.container.extra and release.container.extra.get("original_name")
)
+ if not container_original_name or not isinstance(container_original_name, str):
+ container_original_name = None
container_ident = release.container.ident
container_type = release.container.container_type
container_issnl = release.container.issnl