diff options
Diffstat (limited to 'redis/client.py')
-rw-r--r-- | redis/client.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/redis/client.py b/redis/client.py index c6d9ca2..033fd3d 100644 --- a/redis/client.py +++ b/redis/client.py @@ -275,7 +275,7 @@ class StrictRedis(object): except (AttributeError, ValueError): db = 0 - return cls(host=url.hostname, port=url.port, db=db, + return cls(host=url.hostname, port=int(url.port or 6379), db=db, password=url.password, **kwargs) def __init__(self, host='localhost', port=6379, |