diff options
Diffstat (limited to 'redis/connection.py')
-rw-r--r-- | redis/connection.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/redis/connection.py b/redis/connection.py index af82372..061ee3a 100644 --- a/redis/connection.py +++ b/redis/connection.py @@ -262,7 +262,7 @@ class ConnectionPool(object): def make_connection(self): "Create a new connection" if self._created_connections >= self.max_connections: - raise Exception("Too many connections") + raise ConnectionError("Too many connections") self._created_connections += 1 return self.connection_class(**self.connection_kwargs) |