diff --git a/indra/pipeline/pipeline.py b/indra/pipeline/pipeline.py index 64892c3079..0c250a2a70 100644 --- a/indra/pipeline/pipeline.py +++ b/indra/pipeline/pipeline.py @@ -320,7 +320,7 @@ def run_function(self, func_dict, statements=None, **kwargs): new_kwargs['statements'] = statements if kwargs: for k, v in kwargs.items(): - if k not in new_kwargs and k in inspect.getargspec(func).args: + if k not in new_kwargs and k in inspect.getfullargspec(func).args: new_kwargs[k] = v return self.run_simple_function(func, *new_args, **new_kwargs)