summaryrefslogtreecommitdiff
path: root/redis
diff options
context:
space:
mode:
authorAndy McCurdy <andy@andymccurdy.com>2018-11-14 22:32:55 -0800
committerAndy McCurdy <andy@andymccurdy.com>2018-11-14 22:32:55 -0800
commit69eb38ffd3f991b2a01ec2a604492d4c6b190a80 (patch)
tree7f06e32cd33bf6430eb3efe56137194a7d71644a /redis
parent32a1a3f7ede2ee819d411c7ee011e818539e42e5 (diff)
downloadredis-py-69eb38ffd3f991b2a01ec2a604492d4c6b190a80.tar.gz
fix missing arg in exception message. thanks Keith Ainsworth
Fixes #559
Diffstat (limited to 'redis')
-rwxr-xr-xredis/client.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/redis/client.py b/redis/client.py
index 49cb204..4e7d3f2 100755
--- a/redis/client.py
+++ b/redis/client.py
@@ -3128,10 +3128,12 @@ class PubSub(object):
def run_in_thread(self, sleep_time=0, daemon=False):
for channel, handler in iteritems(self.channels):
if handler is None:
- raise PubSubError("Channel: '%s' has no handler registered")
+ raise PubSubError("Channel: '%s' has no handler registered" %
+ channel)
for pattern, handler in iteritems(self.patterns):
if handler is None:
- raise PubSubError("Pattern: '%s' has no handler registered")
+ raise PubSubError("Pattern: '%s' has no handler registered" %
+ pattern)
thread = PubSubWorkerThread(self, sleep_time, daemon=daemon)
thread.start()