From fc82f262dc652ec68869eb0b8cc7a447cc14e57c Mon Sep 17 00:00:00 2001 From: Christian Tacke <58549698+ChristianTackeGSI@users.noreply.github.com> Date: Fri, 2 Sep 2022 12:28:19 +0200 Subject: [PATCH] build(metaUpdater): Fix Adding new "creators" to .zenodo.json When adding new "creators" to .zenodo.json, the kwargs['contributor_type'] is not set at all. Instead use normal keyword handling with defaults. --- meta_update.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/meta_update.py b/meta_update.py index 1ae55dde..a3efd935 100755 --- a/meta_update.py +++ b/meta_update.py @@ -119,11 +119,11 @@ class ZenodoManipulator(Manipulator): return None @staticmethod - def update_person_entry(entry, matchdict, **kwargs): + def update_person_entry(entry, matchdict, contributor_type=None): if entry is None: entry = OrderedDict() - if kwargs['contributor_type']: - entry['type'] = kwargs['contributor_type'] + if contributor_type: + entry['type'] = contributor_type for field in ('name', 'orcid'): val = matchdict.get(field, None) if val is not None: