diff options
Diffstat (limited to 'redis/connection.py')
-rwxr-xr-x | redis/connection.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/redis/connection.py b/redis/connection.py index 2323365..b5e3fb1 100755 --- a/redis/connection.py +++ b/redis/connection.py @@ -679,7 +679,7 @@ class Connection(object): if nativestr(self.read_response()) != 'PONG': raise ConnectionError( 'Bad response from PING health check') - except (ConnectionError, TimeoutError) as ex: + except (ConnectionError, TimeoutError): self.disconnect() self.send_command('PING', check_health=False) if nativestr(self.read_response()) != 'PONG': |