summaryrefslogtreecommitdiffstats
path: root/python/fatcat_tools/importers/datacite.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/fatcat_tools/importers/datacite.py')
-rw-r--r--python/fatcat_tools/importers/datacite.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/fatcat_tools/importers/datacite.py b/python/fatcat_tools/importers/datacite.py
index 221ac8f5..703dbc27 100644
--- a/python/fatcat_tools/importers/datacite.py
+++ b/python/fatcat_tools/importers/datacite.py
@@ -1088,7 +1088,7 @@ def parse_datacite_titles(titles):
for entry in titles:
if not title and ('titleType' not in entry
or not entry.get('titleType')):
- title = entry.get('title').strip()
+ title = (entry.get('title') or '').strip()
if not subtitle and entry.get('titleType') == 'Subtitle':
subtitle = entry.get('title', '').strip()
if not original_language_title: