From 2753f17e8ec1a7353453f2b8a6e288ed8863ad9a Mon Sep 17 00:00:00 2001 From: foxx Date: Fri, 5 Sep 2014 19:45:49 +0100 Subject: [PATCH] Fixed bug with format() in py3 --- rq/job.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rq/job.py b/rq/job.py index 5aeba46..ddaa750 100644 --- a/rq/job.py +++ b/rq/job.py @@ -109,7 +109,7 @@ class Job(object): if not isinstance(kwargs, dict): raise TypeError('{0!r} is not a valid kwargs dict.'.format(kwargs)) if not isinstance(job_id, (str, unicode, types.NoneType)): - raise TypeError('job_id must be a str/unicode, not {}.'.format(type(job_id))) + raise TypeError('job_id must be a str/unicode, not {0}.'.format(type(job_id))) job = cls(connection=connection) if job_id is not None: