aboutsummaryrefslogtreecommitdiffstats
path: root/python/fatcat_tools/importers/datacite.py
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2020-09-10 17:42:23 -0700
committerBryan Newbold <bnewbold@robocracy.org>2020-09-10 17:46:21 -0700
commitf6828024d81e3ba7923ed010ed4b87e91db6cde3 (patch)
tree6807d954ca45c3f69a7a24f44f2d02af90549d34 /python/fatcat_tools/importers/datacite.py
parent74ae11c45dae25ba6cf2546082d3cc3833379f10 (diff)
downloadfatcat-f6828024d81e3ba7923ed010ed4b87e91db6cde3.tar.gz
fatcat-f6828024d81e3ba7923ed010ed4b87e91db6cde3.zip
datacite: handle case of empty-string version
Includes a tiny tweak to the datacite import sample file to test this code path.
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 6c050565..d4ff6784 100644
--- a/python/fatcat_tools/importers/datacite.py
+++ b/python/fatcat_tools/importers/datacite.py
@@ -618,7 +618,7 @@ class DataciteImporter(EntityImporter):
# Edition", "20191024", "v2.0.0", "v0.9.3", "10149", "2.0", null,
# "v0.1.1", "3.0", "1.0", "3", "v1.12.2", "20191018", "v0.3.1", "v1.0",
# "10161", "10010691", "10780", # "PresentaciĆ³n"
- version = attributes.get('version')
+ version = attributes.get('version') or None
# top-level extra keys
if not container_id and container_name: