diff options
author | Andy McCurdy <andy@andymccurdy.com> | 2019-06-01 15:55:34 -0700 |
---|---|---|
committer | Andy McCurdy <andy@andymccurdy.com> | 2019-06-01 15:55:34 -0700 |
commit | e3e97699a0d37bdf1c8a37e468480d2b9d98a861 (patch) | |
tree | 62d99aac2f8531f53b26862bfbe0a50ab9be1082 | |
parent | 10eb32dea5289018424bec78b2caff542bfde6cb (diff) | |
download | redis-py-e3e97699a0d37bdf1c8a37e468480d2b9d98a861.tar.gz |
don't rewrite ConnectionErrors as they might be subclasses.
just fall back to the except-anything handler
-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 b3c772e..02186b2 100755 --- a/redis/connection.py +++ b/redis/connection.py @@ -645,7 +645,7 @@ class Connection(object): self.disconnect() raise TimeoutError("Timeout reading from %s:%s" % (self.host, self.port)) - except (socket.error, ConnectionError): + except socket.error: self.disconnect() e = sys.exc_info()[1] raise ConnectionError("Error while reading from %s:%s : %s" % |