Skip to content

Commit

Permalink
Don't mask ConnectionError in Pipeline.execute()
Browse files Browse the repository at this point in the history
  • Loading branch information
tilgovi committed Jul 12, 2011
1 parent 4bc9b77 commit 9e918fd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions redis/client.py
Expand Up @@ -1342,10 +1342,10 @@ def execute(self):
return execute(conn, stack)
except ConnectionError:
conn.disconnect()
# if we watching a variable, the watch is no longer valid since
# this conncetion has died.
# if we were watching a variable, the watch is no longer valid since
# this connection has died.
if self.watching:
raise WatchError("Watched variable changed.")
raise
return execute(conn, stack)
finally:
self.reset()
Expand Down

0 comments on commit 9e918fd

Please sign in to comment.