We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
MaxConnectionsError
1 parent dd559eb commit 91b8c4aCopy full SHA for 91b8c4a
redis/asyncio/connection.py
@@ -57,6 +57,7 @@
57
AuthenticationWrongNumberOfArgsError,
58
ConnectionError,
59
DataError,
60
+ MaxConnectionsError,
61
RedisError,
62
ResponseError,
63
TimeoutError,
@@ -1208,7 +1209,7 @@ def get_available_connection(self):
1208
1209
connection = self._available_connections.pop()
1210
except IndexError:
1211
if len(self._in_use_connections) >= self.max_connections:
- raise ConnectionError("Too many connections") from None
1212
+ raise MaxConnectionsError("Too many connections") from None
1213
connection = self.make_connection()
1214
self._in_use_connections.add(connection)
1215
return connection
0 commit comments