Skip to content

Commit

Permalink
Merge pull request redis#323 from paykroyd/exec_without_mulit
Browse files Browse the repository at this point in the history
Do not discard pipeline unless in multi.
  • Loading branch information
Andy McCurdy committed Mar 1, 2013
2 parents 8967403 + 01b1e22 commit ba7b768
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion redis/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -1741,7 +1741,8 @@ def _execute_transaction(self, connection, commands, raise_on_error):
try:
response = self.parse_response(connection, '_')
except ExecAbortError:
self.immediate_execute_command('DISCARD')
if self.explicit_transaction:
self.immediate_execute_command('DISCARD')
if errors:
raise errors[0][1]
raise sys.exc_info()[1]
Expand Down

0 comments on commit ba7b768

Please sign in to comment.