diff options
author | Martin Czygan <martin@archive.org> | 2021-06-11 23:28:41 +0000 |
---|---|---|
committer | Martin Czygan <martin@archive.org> | 2021-06-11 23:28:41 +0000 |
commit | 23ca26585614c9d4a1b2f5fb8bf835a51ce51749 (patch) | |
tree | a72f3fd2065b423b0b356f68b0c14036a939441e /python/fatcat_tools | |
parent | b67cac61d815634969e91999d4bc2954b99bf2b2 (diff) | |
parent | 811a18ef7609d49d97aba3d61d359da979100246 (diff) | |
download | fatcat-23ca26585614c9d4a1b2f5fb8bf835a51ce51749.tar.gz fatcat-23ca26585614c9d4a1b2f5fb8bf835a51ce51749.zip |
Merge branch 'martin-datacite-none-title-sentry-88350' into 'master'
datacite: more careful title string access; fixes sentry #88350
See merge request webgroup/fatcat!108
Diffstat (limited to 'python/fatcat_tools')
-rw-r--r-- | python/fatcat_tools/importers/datacite.py | 2 |
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: |