Skip to content

Commit

Permalink
can catch any type of exception here since we re-raise the exception …
Browse files Browse the repository at this point in the history
…anyway
  • Loading branch information
andy committed Jun 26, 2013
1 parent 1ad6132 commit 80baa99
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
* 2.8.0 (in development)
* redis-py should play better with gevent when a gevent Timeout is raised.
Thanks leifkb.
* 2.7.6
* Added CONFIG RESETSTAT command. Thanks Yossi Gottlieb.
* Fixed a bug introduced in 2.7.3 that caused issues with script objects
Expand Down
4 changes: 2 additions & 2 deletions redis/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ def send_packed_command(self, command):
_errno, errmsg = e.args
raise ConnectionError("Error %s while writing to socket. %s." %
(_errno, errmsg))
except Exception:
except:
self.disconnect()
raise

Expand All @@ -307,7 +307,7 @@ def read_response(self):
"Read the response from a previously sent command"
try:
response = self._parser.read_response()
except Exception:
except:
self.disconnect()
raise
if isinstance(response, ResponseError):
Expand Down

0 comments on commit 80baa99

Please sign in to comment.