diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2020-09-10 17:42:23 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2020-09-10 17:46:21 -0700 |
commit | f6828024d81e3ba7923ed010ed4b87e91db6cde3 (patch) | |
tree | 6807d954ca45c3f69a7a24f44f2d02af90549d34 /python/fatcat_tools | |
parent | 74ae11c45dae25ba6cf2546082d3cc3833379f10 (diff) | |
download | fatcat-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')
-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 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: |