summaryrefslogtreecommitdiff
path: root/redis/connection.py
diff options
context:
space:
mode:
authorAndy McCurdy <andy@andymccurdy.com>2011-05-23 10:55:40 -0700
committerAndy McCurdy <andy@andymccurdy.com>2011-05-23 10:55:40 -0700
commitae71200de265a9353982789c3871dd8329a8d265 (patch)
tree5c9b8c1886c05dd466909fd76b6cb0eb2ba2b5e2 /redis/connection.py
parentdef45c6133358a79274815e738e6c4005e10e188 (diff)
downloadredis-py-ae71200de265a9353982789c3871dd8329a8d265.tar.gz
new pubsub tests
Diffstat (limited to 'redis/connection.py')
-rw-r--r--redis/connection.py2
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)