Commit babe4ae0 authored by Sean Bleier's avatar Sean Bleier

Fix issue with redis urls and unix_socket_path key error.

parent 12fabc20
...@@ -58,7 +58,7 @@ class CacheConnectionPool(object): ...@@ -58,7 +58,7 @@ class CacheConnectionPool(object):
kwargs.update(connection_pool_class_kwargs) kwargs.update(connection_pool_class_kwargs)
if unix_socket_path is None: if unix_socket_path in (None, ''):
kwargs.update({ kwargs.update({
'host': host, 'host': host,
'port': port, 'port': port,
......
...@@ -93,6 +93,7 @@ def parse_connection_kwargs(server, db=None, **kwargs): ...@@ -93,6 +93,7 @@ def parse_connection_kwargs(server, db=None, **kwargs):
NOTE: taken from `redis.ConnectionPool.from_url` in redis-py NOTE: taken from `redis.ConnectionPool.from_url` in redis-py
""" """
kwargs['unix_socket_path'] = ''
if '://' in server: if '://' in server:
url = server url = server
url_string = url url_string = url
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment