Skip to content

Commit 80baa99

Browse files
author
andy
committedJun 26, 2013
can catch any type of exception here since we re-raise the exception anyway
1 parent 1ad6132 commit 80baa99

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed
 

‎CHANGES

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
* 2.8.0 (in development)
2+
* redis-py should play better with gevent when a gevent Timeout is raised.
3+
Thanks leifkb.
14
* 2.7.6
25
* Added CONFIG RESETSTAT command. Thanks Yossi Gottlieb.
36
* Fixed a bug introduced in 2.7.3 that caused issues with script objects

‎redis/connection.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ def send_packed_command(self, command):
295295
_errno, errmsg = e.args
296296
raise ConnectionError("Error %s while writing to socket. %s." %
297297
(_errno, errmsg))
298-
except Exception:
298+
except:
299299
self.disconnect()
300300
raise
301301

@@ -307,7 +307,7 @@ def read_response(self):
307307
"Read the response from a previously sent command"
308308
try:
309309
response = self._parser.read_response()
310-
except Exception:
310+
except:
311311
self.disconnect()
312312
raise
313313
if isinstance(response, ResponseError):

0 commit comments

Comments
 (0)