From c27cb5217ce35dee929acfa7a4242eb7497b22a8 Mon Sep 17 00:00:00 2001 From: reterVision Date: Thu, 26 Sep 2013 15:48:48 +0800 Subject: [PATCH] Remove duplicate function call. --- rq/worker.py | 1 - 1 file changed, 1 deletion(-) diff --git a/rq/worker.py b/rq/worker.py index 09af23c..64fd904 100644 --- a/rq/worker.py +++ b/rq/worker.py @@ -79,7 +79,6 @@ class Worker(object): by their Redis keys. """ prefix = cls.redis_worker_namespace_prefix - name = worker_key[len(prefix):] if not worker_key.startswith(prefix): raise ValueError('Not a valid RQ worker key: %s' % (worker_key,))