From 7a436145745b006107093c196071fe4bf8aeac71 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Thu, 14 Feb 2019 17:45:57 -0800 Subject: crossref: import subtitle as str, not list[str] --- python/fatcat_tools/importers/crossref.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/python/fatcat_tools/importers/crossref.py b/python/fatcat_tools/importers/crossref.py index f357297a..5715654b 100644 --- a/python/fatcat_tools/importers/crossref.py +++ b/python/fatcat_tools/importers/crossref.py @@ -283,6 +283,8 @@ class CrossrefImporter(EntityImporter): for key in ('group-title', 'subtitle'): val = obj.get(key) if val: + if type(val) == list: + val = val[0] if type(val) == str: extra[key] = clean(val) else: -- cgit v1.2.3