summaryrefslogtreecommitdiff
path: root/redis/client.py
diff options
context:
space:
mode:
Diffstat (limited to 'redis/client.py')
-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()