diff options
author | Martin Czygan <martin@archive.org> | 2020-01-31 18:40:29 +0000 |
---|---|---|
committer | Martin Czygan <martin@archive.org> | 2020-01-31 18:40:29 +0000 |
commit | ef6bce6b49bd937afbd10505b21b79572072977c (patch) | |
tree | 862e2ccce9f6dfbc8a8d071e7559e6c4bbadc9bf | |
parent | dbdff6d01c52666dd51040979398aa11b2288faa (diff) | |
parent | 20276576be31b5bdc3822c2cd1ec2f6f7ed5b1e1 (diff) | |
download | fatcat-ef6bce6b49bd937afbd10505b21b79572072977c.tar.gz fatcat-ef6bce6b49bd937afbd10505b21b79572072977c.zip |
Merge branch 'martin-datacite-strptime-none' into 'master'
datacite: prevent none
See merge request webgroup/fatcat!25
-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: |