diff options
Diffstat (limited to 'redis/connection.py')
-rw-r--r-- | redis/connection.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/redis/connection.py b/redis/connection.py index 5a86c0e..ccfedf6 100644 --- a/redis/connection.py +++ b/redis/connection.py @@ -475,8 +475,8 @@ class BlockingConnectionPool(object): # algorithm we use, it must be a positive integer. is_valid = isinstance(max_connections, int) and max_connections > 0 if not is_valid: - raise ValueError, '``max_connections`` must be a positive integer' - + raise ValueError('``max_connections`` must be a positive integer') + # Get the current process id, so we can disconnect and reinstantiate if # it changes. self.pid = os.getpid() |