From f6828024d81e3ba7923ed010ed4b87e91db6cde3 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Thu, 10 Sep 2020 17:42:23 -0700 Subject: datacite: handle case of empty-string version Includes a tiny tweak to the datacite import sample file to test this code path. --- python/fatcat_tools/importers/datacite.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python/fatcat_tools/importers') 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: -- cgit v1.2.3