summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-11-04 11:41:56 -0800
committerBryan Newbold <bnewbold@robocracy.org>2019-11-04 11:41:58 -0800
commitdf72d9f98aef03846e97d3097f655560f4bd4e12 (patch)
treede37c382e83ac2926b0f4485ecfbe10435b545fa
parent5748f3241117b52f5295dc589374ec0c219534e4 (diff)
downloadfatcat-df72d9f98aef03846e97d3097f655560f4bd4e12.tar.gz
fatcat-df72d9f98aef03846e97d3097f655560f4bd4e12.zip
crossref: don't skip on short/null subtitle
This was a bug. Should only set subtitle black, not skip the import.
-rw-r--r--python/fatcat_tools/importers/crossref.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/fatcat_tools/importers/crossref.py b/python/fatcat_tools/importers/crossref.py
index faee6aac..3705eb81 100644
--- a/python/fatcat_tools/importers/crossref.py
+++ b/python/fatcat_tools/importers/crossref.py
@@ -413,7 +413,7 @@ class CrossrefImporter(EntityImporter):
subtitle = clean(obj.get('subtitle')[0], force_xml=True)
if not subtitle or len(subtitle) <= 1:
# subtitle can't be just a single character
- return None
+ subtitle = None
if extra_crossref:
extra['crossref'] = extra_crossref