diff options
author | bnewbold <bnewbold@archive.org> | 2020-09-11 01:27:01 +0000 |
---|---|---|
committer | bnewbold <bnewbold@archive.org> | 2020-09-11 01:27:01 +0000 |
commit | 08c01089b4b0b3f1fc076e584d264694629f6a01 (patch) | |
tree | 6807d954ca45c3f69a7a24f44f2d02af90549d34 /python/fatcat_tools/importers | |
parent | 74ae11c45dae25ba6cf2546082d3cc3833379f10 (diff) | |
parent | f6828024d81e3ba7923ed010ed4b87e91db6cde3 (diff) | |
download | fatcat-08c01089b4b0b3f1fc076e584d264694629f6a01.tar.gz fatcat-08c01089b4b0b3f1fc076e584d264694629f6a01.zip |
Merge branch 'bnewbold-datacite-not-empty-version' into 'master'
datacite: handle case of empty-string version
See merge request webgroup/fatcat!83
Diffstat (limited to 'python/fatcat_tools/importers')
-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: |