Skip to content

Commit

Permalink
Merge pull request rq#194 from selwin/master
Browse files Browse the repository at this point in the history
Job.create should allow args to be passed in list format
  • Loading branch information
nvie committed Mar 18, 2013
2 parents 7c63b72 + a0c9267 commit bf802a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rq/job.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def create(cls, func, args=None, kwargs=None, connection=None,
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):
Expand Down

0 comments on commit bf802a1

Please sign in to comment.