aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Czygan <martin@archive.org>2020-01-31 18:40:29 +0000
committerMartin Czygan <martin@archive.org>2020-01-31 18:40:29 +0000
commitef6bce6b49bd937afbd10505b21b79572072977c (patch)
tree862e2ccce9f6dfbc8a8d071e7559e6c4bbadc9bf
parentdbdff6d01c52666dd51040979398aa11b2288faa (diff)
parent20276576be31b5bdc3822c2cd1ec2f6f7ed5b1e1 (diff)
downloadfatcat-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.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 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: