Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Not consuming responses for subscribe commands.

  • Loading branch information...
commit b33a6fc9351e19fb058eb5302d1f185ec50c75c6 1 parent 7b1f196
@kmerenkov kmerenkov authored
Showing with 2 additions and 4 deletions.
  1. +2 −4 redis/client.py
View
6 redis/client.py
@@ -258,17 +258,15 @@ def _execute_command(self, command_name, command, **options):
"UNSUBSCRIBE while channels are open")
try:
self.connection.send(command, self)
- response = self.parse_response(command_name, **options)
if subscription_command:
return None
- return response
+ return self.parse_response(command_name, **options)
except ConnectionError:
self.connection.disconnect()
self.connection.send(command, self)
- response = self.parse_response(command_name, **options)
if subscription_command:
return None
- return response
+ return self.parse_response(command_name, **options)
def execute_command(self, *args, **options):
"Sends the command to the redis server and returns it's response"
Please sign in to comment.
Something went wrong with that request. Please try again.