summaryrefslogtreecommitdiffstats
path: root/python/fatcat_tools
diff options
context:
space:
mode:
Diffstat (limited to 'python/fatcat_tools')
-rw-r--r--python/fatcat_tools/importers/datacite.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/fatcat_tools/importers/datacite.py b/python/fatcat_tools/importers/datacite.py
index d0c75b6e..2fad1264 100644
--- a/python/fatcat_tools/importers/datacite.py
+++ b/python/fatcat_tools/importers/datacite.py
@@ -604,8 +604,8 @@ class DataciteImporter(EntityImporter):
if not container_id and container_name:
extra['container_name'] = container_name
- if extra_datacite:
- extra['datacite'] = extra_datacite
+ # Always include datacite key, even if value is empty (dict).
+ extra['datacite'] = extra_datacite
extids = self.lookup_ext_ids(doi=doi)