From a503411c8ca1ea93ab01cb437ae0537636ca93cd Mon Sep 17 00:00:00 2001 From: Branden Hall Date: Wed, 6 Sep 2017 11:06:05 -0400 Subject: [PATCH] Fix to pass args and kwargs through to function --- background.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/background.py b/background.py index d6140d2..74d15d3 100644 --- a/background.py +++ b/background.py @@ -24,8 +24,8 @@ def run(f, *args, **kwargs): return f -def task(f, *args, **kwargs): - def do_task(): +def task(f): + def do_task(*args, **kwargs): result = run(f, *args, **kwargs) results.append(result)