aboutsummaryrefslogtreecommitdiffstats
path: root/fatcat_scholar/schema.py
diff options
context:
space:
mode:
Diffstat (limited to 'fatcat_scholar/schema.py')
-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