diff options
author | Martin Czygan <martin.czygan@gmail.com> | 2020-01-31 19:32:03 +0100 |
---|---|---|
committer | Martin Czygan <martin.czygan@gmail.com> | 2020-01-31 19:32:03 +0100 |
commit | 20276576be31b5bdc3822c2cd1ec2f6f7ed5b1e1 (patch) | |
tree | 862e2ccce9f6dfbc8a8d071e7559e6c4bbadc9bf /python/fatcat_tools/importers/datacite.py | |
parent | dbdff6d01c52666dd51040979398aa11b2288faa (diff) | |
download | fatcat-20276576be31b5bdc3822c2cd1ec2f6f7ed5b1e1.tar.gz fatcat-20276576be31b5bdc3822c2cd1ec2f6f7ed5b1e1.zip |
datacite: prevent none
Diffstat (limited to 'python/fatcat_tools/importers/datacite.py')
-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 20fc399c..4e382348 100644 --- a/python/fatcat_tools/importers/datacite.py +++ b/python/fatcat_tools/importers/datacite.py @@ -1009,7 +1009,7 @@ def parse_datacite_dates(dates): ) def parse_item(item): - result, value, year_only = None, item.get('date', ''), False + result, value, year_only = None, item.get('date', '') or '', False release_date, release_month, release_year = None, None, None for layout, granularity in common_patterns: |