Skip to content

Commit

Permalink
fix missing arg in exception message. thanks Keith Ainsworth
Browse files Browse the repository at this point in the history
Fixes #559
  • Loading branch information
andymccurdy committed Nov 15, 2018
1 parent 32a1a3f commit 69eb38f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions redis/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -3128,10 +3128,12 @@ def handle_message(self, response, ignore_subscribe_messages=False):
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()
Expand Down

0 comments on commit 69eb38f

Please sign in to comment.