From a0c9267550661bd6ff733d4dc27488b57574d51f Mon Sep 17 00:00:00 2001 From: Selwin Ong Date: Mon, 18 Mar 2013 09:57:13 +0700 Subject: [PATCH] Job.create should also accept arguments in list format. --- rq/job.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rq/job.py b/rq/job.py index a1c8205..a4772a4 100644 --- a/rq/job.py +++ b/rq/job.py @@ -72,7 +72,7 @@ class Job(object): args = () if kwargs is None: kwargs = {} - assert isinstance(args, tuple), '%r is not a valid args list.' % (args,) + assert isinstance(args, (tuple, list)), '%r is not a valid args list.' % (args,) assert isinstance(kwargs, dict), '%r is not a valid kwargs dict.' % (kwargs,) job = cls(connection=connection) if inspect.ismethod(func):